cozy-labs / cozy-light

Personal Server Made Easy
http://cozy-labs.github.io/cozy-light/
GNU Affero General Public License v3.0
104 stars 13 forks source link

Update / Install fails through npm on RPI #70

Closed nicodel closed 9 years ago

nicodel commented 9 years ago

Hi all,

I have cozy-light installed on a RPI, and after having done a sudo npm update -g, cozy-light wouldn't start. I check the logs and find out that, update fails on command node-gyp rebuild.

As I was not sure of my node/npm install, I removed it, and re-installed it following the steps described in the README.md of cozy-light (wget http://nodejs.org/dist/v0.10.26/node-v0.10.26-linux-arm-pi.tar.gz...). Try to install cozy-light, but I got the same messages of failure on comand node-gyp rebuild. Any idea what is going on ??

These messages are as follows:


> leveldown@0.10.4 install /usr/local/lib/node_modules/cozy-light/node_modules/pouchdb/node_modules/leveldown
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.26"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/cozy-light/node_modules/pouchdb/node_modules/leveldown/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: ENOSPC, mkdir '/usr/local/lib/node_modules/cozy-light/node_modules/pouchdb/node_modules/leveldown/.node-gyp'
gyp ERR! System Linux 3.18.7+
gyp ERR! command "node" "/opt/node-v0.10.26-linux-arm-pi/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/cozy-light/node_modules/pouchdb/node_modules/leveldown
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! leveldown@0.10.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the leveldown@0.10.4 install script.
npm ERR! This is most likely a problem with the leveldown package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls leveldown
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.18.7+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cozy-light"
npm ERR! cwd /opt
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /opt/npm-debug.log
npm ERR! not ok code 0 
maboiteaspam commented 9 years ago

I see you ve sudo for update, have you sudo too in order to (re) install ?

nicodel commented 9 years ago

Yes, always as cozy-light was installed with -g. I also tried logged as root. But still the same message.

frankrousseau commented 9 years ago

Yes that one is really weird. Can you clear your NPM cache and try again?

sudo npm clean
nicodel commented 9 years ago

I solved my problem last night, and I am quite ashame to share the solution with you...

/ was full

frankrousseau commented 9 years ago

No worries, it might happens to other users. That's good to know.