Error: gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.24"
-
When I run
npm install
, I get this error:
gyp WARN EACCES user root does not have permission to access the dev dir /root/.node-gyp/0.10.24Then it tries to download node-v0.10.24.tar.gz this way:
gyp WARN EACCES attempting to reinstall using temporary dev dir "/var/www/nodebb/node_modules/bcrypt/.node-gyp"
gyp http GET http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gzWhy it happens?
-
hey @reaon, have a look here and see if it can help you?
https://github.com/isaacs/npm/issues/2952 -
what is your node version?
psychobunny@dev:~$ node -v v0.10.24
Copyright © 2024 NodeBB | Contributors