2
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@angular/cli/node_modules/node-sass/build'
gyp ERR! System Linux 4.8.0-56-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/@angular/cli/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /usr/local/lib/node_modules/@angular/cli/node_modules/node-sass
gyp ERR! node -v v7.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
1
  • 3
    run as sudo. try sudo npm install -g @angular/cli Commented Jun 27, 2017 at 13:20

3 Answers 3

4

Try installing it using --force command

This worked for me: sudo npm install -g -f angular-cli

Sign up to request clarification or add additional context in comments.

Comments

1

You have npm directory permission issue, please try with sudo.

npm install -g @angular/cli

Angularjs Installation guide

Comments

1

you may try this below command:

sudo npm install -g --unsafe-perm @angular/cli

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.