0

Getting this error while adding bootstrap into an angular project using angular-cli

npm install bootstrap@3 jquery --save
npm ERR! path C:\Users\cw\Desktop\Basic-angular\got\node_modules\.staging
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\cw\Desktop\Basic-angular\got\node_modules\.staging'
npm ERR!  { Error: EPERM: operation not permitted, unlink 'C:\Users\cw\Desktop\Basic-angular\got\node_modules\.staging'
npm ERR!   stack: 'Error: EPERM: operation not permitted, unlink \'C:\\Users\\cw\\Desktop\\Basic-angular\\got\\node_modules\\.staging\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path: 'C:\\Users\\cw\\Desktop\\Basic-angular\\got\\node_modules\\.staging' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\cw\AppData\Roaming\npm-cache\_logs\2018-08-18T11_54_33_403Z-debug.log

1
  • 1
    Hello! Please add an actual question to your description. in this current state, this is not a question and should be removed. please read how to ask a good question Commented Aug 18, 2018 at 11:58

1 Answer 1

1

The error message says "Run this command as administrator". If you are using cmd, try running cmd as an administrator.

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

3 Comments

How I use cmd as an administrator
On the Start menu, type cmd in the search field. Right click on Cmd application and click "Run as administrator"
Now it says npm ERR! Please try running this command again as root/Administrator.

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.