Reputation: 620
I'm trying to install angular 6 with:
$ npm install -g @angular/cli@latest
Using
node -v - v8.11.1
npm -v - 6.0.1
OS - Linux (Mint 18)
Getting this error:
npm ERR! Unexpected end of JSON input while parsing near '...um":"7e1bd7294bd522da'
Note: Have already tried npm cache verify and npm cache clean --force
Upvotes: 1
Views: 801
Reputation: 222542
This seems like a problem with your node/npm and not with Angular CLI.
Just completely uninstall the Node.js from Programs and Features and Re-install it,Make sure that you completely deleted all the node-modules and npm caches in the Npm folder and not present anywhere else
Upvotes: 1