Answers for "EACCES: permission denied, access '/var/www/html/gh-entertainers/api/node_modules'"

5

npm EACCES: permission denied, access '/usr/local/lib'

sudo chown -R $(whoami) ~/.npm

mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
source ~/.profile
Posted by: Guest on September-12-2020
0

node-gyp Error: EACCES: permission denied

Try using the sudo chmod 777 command for the node_modules directory and if that doesn't work try
sudo npm install -g --unsafe-perm
or
sudo node-gyp rebuild -g --unsafe-perm
Posted by: Guest on July-30-2021

Code answers related to "EACCES: permission denied, access '/var/www/html/gh-entertainers/api/node_modules'"

Browse Popular Code Answers by Language