0
votes

i have been trying to install vue cli

am getting this error :

npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated npm ERR! Unexpected end of JSON input while parsing near '...b\n/0ygjrhbcRx2VetexZ'

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\ekikere\AppData\Roaming\npm-cache_logs\2020-07-28T23_29_37_356Z-debug.log

2
what is the exact command you are running?sebasaenz

2 Answers

0
votes

This is a problem related to npm. You can get this error when the cache file gets corrupted. Clearing the cache solves the problem. Can you try this?

npm cache clean --force
0
votes

you can clear cache by running these command :

npm cache clean --force

  • linux system:

run command as root

sudo npm install -g @vue/cli 
  • windows system

open command prompt as adminstrator then run :

npm install -g @vue/cli