Angular app installing Error: Unexpected end of JSON input while parsing near '…//registry.npmjs.org/'

青春壹個敷衍的年華 提交于 2019-12-11 06:02:08

问题


I am very new to Angular. I have installed the Angular by using the command:

npm install -g @angular/cli

When I check the version of Angular it shows:

After on, I installed an Angular application by using: ng new newApp

I have got an error during app installation:

Unexpected end of JSON input while parsing near '...//registry.npmjs.org/'

Here is the image of what I have done:

You can find log content through this link: https://drive.google.com/file/d/11MEWOcSaU4c-1879LuijRiXRvCu-cAIz/view?usp=sharing

Let me know where is the problem...


回答1:


Try clearing the npm cache first using the following command and then try creating a new ng application

npm cache clean --force


来源:https://stackoverflow.com/questions/53916742/angular-app-installing-error-unexpected-end-of-json-input-while-parsing-near

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!