I have a problem installing angular-cli on a docker.
I'm running the command
npm install -g @angular/cli@latest
and it shows me the error attached
/root/.nvm/versions/node/v8.6.0/bin/ng - > /root/.nvm/versions/node/v8.6.0/lib/node_modules/@angular/cli/bin/ng
- > [email protected] install /root/.nvm/versions/node/v8.6.0/lib/node_modules/@angular/cli/node_modules/node-sass - > node scripts / install.js
sh: 1: node: Permission denied
- > [email protected] postinstall /root/.nvm/versions/node/v8.6.0/lib/node_modules/@angular/cli/node_modules/uglifyjs-webpack-plugin - > node lib / post_install.js
sh: 1: node: Permission denied npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules / @ angular / cli / node_modules / fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os": "darwin", "arch": "any"} (current: {"os": "linux", "arch": "x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules / @ angular / cli / node_modules / node-sass): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install:
node scripts/install.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn ENOENTnpm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! [email protected] postinstall:
node lib/post_install.js
npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the [email protected] postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR!
/root/.npm/_logs/2017-10-02T04_39_45_327Z-debug.log