3

When i run npm install -g vue-cli , it continuously throws this error message:

Screen shot

npm ERR! path C:\Users\End User\AppData\Roaming\npm\node_modules\vue-cli\node_modules\nan\package.json npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall unlink npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\End User\AppData\Roaming\npm\node_modules\vue-cli\node_modules\nan\package.json' npm ERR! at Error (native) npm ERR! { Error: EPERM: operation not permitted, unlink 'C:\Users\End User\AppData\Roaming\npm\node_modules\vue-cli\node_modules\nan\package.json' npm ERR! at Error (native) npm ERR! stack: 'Error: EPERM: operation not permitted, unlink \'C:\Users\End User\AppData\Roaming\npm\node_modules\vue-cli\node_modules\nan\package.json\'\n at Error (native)', npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'unlink', npm ERR! path: 'C:\Users\End User\AppData\Roaming\npm\node_modules\vue-cli\node_modules\nan\package.json' } 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\End User\AppData\Roaming\npm-cache_logs\2017-09-10T06_15_03_457Z-debug.log

  • I tried all the possible solutions found online :

    • running from windows cmd with administrator access,

    • npm cache clean

    • closed my text editor

    • restarted my PC

Please do help me solve this issue.

2
  • Anyway try disabling your anti-virus Commented Sep 12, 2017 at 6:47
  • You have a reason et the end of the error: "Please try running this command again as root/Administrator." Commented Dec 1, 2018 at 18:32

1 Answer 1

1

i also had issues on my mac, but maybe here are some hints to help you

  1. goto folder: C:\Users\End User\AppData\Roaming\npm\node_modules (in windows make sure to enable all folders)
  2. move folders @vue and vue-cli to trash (previous versions)
  3. run cmd.exe as administrator !
  4. npm install @vue/cli -g

hopefully this trick will work for you, see Mac OS : Install vue cli does work properly for my answer on the issue with a mac

thx

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

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.