I'm trying to sudo npm install on a google compute engine running Debian 9 (stretch) image with Node 8.9.4 and I just keep getting:
gyp WARN EACCES user "root" does not have permission to access the dev dir "/var/www/html/app/node_modules/iltorb/.node-gyp/8.9.4"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/var/www/html/app/node_modules/iltorb/.node-gyp"
I'm trying to
sudo npm install
on a google compute engine runningDebian 9 (stretch)
image with Node 8.9.4 and I just keep getting:Using
nvm exec sudo npm install
doesn't work either as suggested here: https://github.com/nodejs/node-gyp/issues/454#issuecomment-315691803Any idea whats going on?