NPM Install Error:Unexpected end of JSON input while parsing near '...nt-webpack-plugin":"0'
Full error message
When creating a new Angular 5 project: node version: 8.9.2 npm version: 5.5.1 My Command is: npm install -g @angular/cli The Error is: npm ERR! **Unexpected end of JSON input while parsing near '...nt-webpack-plugin":"0'** npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Aashitec\AppData\Roaming\npm-cache\_logs\2017-12-06T13_10_10_729Z-debug.log The error log is here
Solutionsource: stackoverflow \u2197
This solved it for me: Open Windows Powershell as admin npm cache clean --force npm install -g @angular/cli https://devblogs.microsoft.com/premier-developer/getting-started-with-node-js-angular-and-visual-studio-code/
API access
Get this solution programmatically \u2014 free, no authentication.
curl https://depscope.dev/api/error/1f60fc0559d02c40a091100eae43af797bab0dd9ab20474568ee0947fa234dbfhash \u00b7 1f60fc0559d02c40a091100eae43af797bab0dd9ab20474568ee0947fa234dbf