permission error on /usr/local/lib/node_modules
Summary
Repeatedly tries to install node-sass due to permission error. Installs fine on my local machine but fails in the CI pipeline.
Steps to reproduce
run CI that installs a package that uses node-gyp, in my case that is node-sass.
Example Project
https://gitlab.com/robertbaker/cibug - see logs. ng new cibug --style=scss
What is the current bug behavior?
gyp verb command install [ '9.4.0' ]
gyp verb install input version string "9.4.0"
gyp verb install installing version: 9.4.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 9.4.0
gyp verb ensuring nodedir is created /usr/local/lib/node_modules/@angular/cli/node_modules/node-sass/.node-gyp/9.4.0
gyp WARN EACCES user "nobody" does not have permission to access the dev dir "/usr/local/lib/node_modules/@angular/cli/node_modules/node-sass/.node-gyp/9.4.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/@angular/cli/node_modules/node-sass/.node-gyp"```
### What is the expected *correct* behavior?
This installs correctly.
### Output of checks
This bug happens on GitLab.com
Edited by Robert Baker