Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPI 4 rpi-install.sh error #10

Open
arpagor62970 opened this issue Mar 22, 2020 · 1 comment
Open

RPI 4 rpi-install.sh error #10

arpagor62970 opened this issue Mar 22, 2020 · 1 comment

Comments

@arpagor62970
Copy link

revision on my rpi4B+ is c03111
i've modify ligne 29 : a01041 | a21041 | a22082 | a02082 | c03111 )
after is ok but another error 👍


Suppresion de l'archive et du repertoire décompressé
rm: impossible de supprimer 'node*': Aucun fichier ou dossier de ce type
Le dossier SARAH-Server-NodeJS existe déjà
Installation des dépendances
npm ERR! install Couldn't read dependencies
npm ERR! Linux 4.19.97-v7l+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.2.2
npm ERR! npm v2.14.7
npm ERR! path /home/pi/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2
npm ERR! syscall open

npm ERR! package.json ENOENT: no such file or directory, open '/home/pi/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.

npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.log
Création du custom.prop
starting S.A.R.A.H. ...
pi@raspberrypi:~/SARAH-Server-NodeJS $ module.js:339
throw err;
^

@Astriaporta
Copy link

Astriaporta commented Sep 1, 2020

Dans le script, entre la ligne 49 et 51, mettre la commande cd ../ .
Puis déplacer la ligne 60 vers la 64. Ainsi, que le projet existait ou pas avant, on rentre dedans et le npm install fonctionnera.
Ou bien, on met les lignes 65 et 66 dans la condition "si le projet n'existe pas" et on met la ligne npm update après la ligne 62.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants