Closed DavidManda closed 5 years ago
Bug description Running sudo npm install inside the root folder fails with: gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/user/anabi-gestiune-client-master/node_modules/node-sass/.node-gyp'
sudo npm install
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/user/anabi-gestiune-client-master/node_modules/node-sass/.node-gyp'
Step to reproduce it Following the installation steps on a Centos7 machine. npm and node are installed and at the latest stable version.
Expected behavior Successful installation.
Additional info I also tried using sudo chown -R user:user /home/user/anabi-gestiune-client-master/node_modules/ but I still get the same error.
sudo chown -R user:user /home/user/anabi-gestiune-client-master/node_modules/
npm install should not be ran as root, check the details here: https://github.com/angular/angular-cli/issues/6800#issuecomment-311356321
npm install
root
I see, thank you
Bug description Running
sudo npm install
inside the root folder fails with:gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/user/anabi-gestiune-client-master/node_modules/node-sass/.node-gyp'
Step to reproduce it Following the installation steps on a Centos7 machine. npm and node are installed and at the latest stable version.
Expected behavior Successful installation.
Additional info I also tried using
sudo chown -R user:user /home/user/anabi-gestiune-client-master/node_modules/
but I still get the same error.