-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Unexpected end of JSON input while parsing when installing vue-cli #587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Try updating your node version |
@posva I was running on Node 8.0.0, and i upgraded to 8.5.0. Now it leads to another error. This was the initial error i got, but then the above error started coming. npm ERR! path C:\Users\yomal.ds\AppData\Roaming\npm\node_modules\vue-cli\node_modules\fsevents\nod npm ERR! errno: -4048, npm ERR! A complete log of this run can be found in: PS : I am running as Administrator |
In that case, I'll let you search for the error which seems unrelated to vue-cli, if it turns out we need to modify vue-cli code to fix it, please, come back and ping me. Sorry but I really don't know what is the origin of the error |
Downgrading to npm v5.3 worked for me. It's a npm 5.4 bug npm/npm#18380 |
oh, thanks for sharing 😄 |
Thanks |
Downgraded to npm v5.3, still didn't work for me. Had to downgrade to npm v4.6.1 and it worked fine. |
thanks. did the same, worked for me too |
npm cache clean --force also helps |
@AdhamRammadan |
I had to execute the command below: npm config set registry http://registry.npmjs.org/ npm config set registry https://registry.npmjs.org/ |
I tried doing |
npm cache clean --force It worked and helped. |
npm WARN using --force I sure hope you know what you are doing. |
When i try to install vue-cli via npm i get the following error.
C:\Users\yomal.ds\Desktop\VueJS>npm install --global vue-cli
npm ERR! Unexpected end of JSON input while parsing near '...},"dist":{"shasum": "8'
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\yomal.ds\AppData\Roaming\npm-cache\_logs\2017-09-12T06_55_ 53_890Z-debug.log
I tried npm cache clean and reinstalling npm.
Debug log is attached. Log.txt
OS : Win 7 x64
npm : v5.4.1
Node : v8.0.0
The text was updated successfully, but these errors were encountered: