ABHILASHA K.M
ABHILASHA K.M

Reputation: 164

Vue : Unexpected end of JSON input while parsing near '...version":"0.5.0","dev'

I am Learning Vue JS. Planning to develop application on it. Initially I installed Vue by

npm install vue-cli -g

But some of good Friend told me that this is Depreciated. Its there in the documentation also. Vue Javascript with npm install command

https://cli.vuejs.org/guide/installation.html

But unable to install Vue by cmd:

npm install -g @vue/cli

this gives me Error as :

npm ERR! Unexpected end of JSON input while parsing near '...version":"0.5.0","dev'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Abhilash\AppData\Roaming\npm-cache\_logs\2020-05-13T12_14_23_300Z-debug.log

What may be the Error ? How overcome from this ?

Upvotes: 0

Views: 581

Answers (1)

Satyam Pathak
Satyam Pathak

Reputation: 6922

Try cleaning npm cache and then install vue

npm cache clean --force
npm install -g  @vue/cli

Upvotes: 1

Related Questions