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

NodeJS 14.18 Error: EACCES: permission denied, stat #123

Open
andreevpix opened this issue Sep 29, 2021 · 1 comment
Open

NodeJS 14.18 Error: EACCES: permission denied, stat #123

andreevpix opened this issue Sep 29, 2021 · 1 comment

Comments

@andreevpix
Copy link

andreevpix commented Sep 29, 2021

npm install gifsicle

npm ERR! code 1
npm ERR! path /srv/site/node_modules/gifsicle
npm ERR! command failed
npm ERR! command sh -c node lib/install.js
npm ERR! /srv/site/node_modules/npm-conf/lib/conf.js:169
npm ERR! 			throw err;
npm ERR! 			^
npm ERR! 
npm ERR! Error: EACCES: permission denied, stat '/root/.nvm/versions/node/v14.18.0'
npm ERR!     at Object.statSync (node:fs:1536:3)
npm ERR!     at Conf.loadUser (/srv/site/node_modules/npm-conf/lib/conf.js:162:21)
npm ERR!     at module.exports (/srv/site/node_modules/npm-conf/index.js:32:7)
npm ERR!     at Object.<anonymous> (/srv/site/node_modules/get-proxy/index.js:2:36)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1101:14)
npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
npm ERR!     at Module.load (node:internal/modules/cjs/loader:981:32)
npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19)
npm ERR!     at require (node:internal/modules/cjs/helpers:102:18) {
npm ERR!   errno: -13,
npm ERR!   syscall: 'stat',
npm ERR!   code: 'EACCES',
npm ERR!   path: '/root/.nvm/versions/node/v14.18.0'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-09-29T20_42_33_042Z-debug.log
node -v
v14.18.0

npm -v
7.24.0
whoami
root
@1000ch
Copy link
Member

1000ch commented Nov 11, 2021

What happens when you try to install another package in the same directory & permission?

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