vuejs-templates / webpack

A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
MIT License
9.7k stars 4.38k forks source link

npm err unexpected end of json input while parsing near '... RE----\r\n"}},"1.2.0' #1519

Closed sandeepsp2507 closed 4 years ago

sandeepsp2507 commented 4 years ago

error Getting this error while creating the new app(command ng new name).

sandeepsp2507 commented 4 years ago

I got this issue solved by deleting npm and npm-cache files in C:\Users\admin\AppData\Roaming and by using these commands npm cache clear --force

npm cache verify

update npm to latest version npm i -g npm

npm i -g @angular/cli@latest

ng new HelloWorld