小编典典

NPM安装错误:解析“…nt-webpack-plugin”:“ 0”附近时,JSON输入意外结束

node.js

创建新的Angular 5项目时:

节点版本:8.9.2

npm版本:5.5.1

我的命令是

npm install -g @angular/cli

错误是

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

错误日志为http://www.aashitechno.in/2017-12-06T13_10_10_729Z-debug.log


阅读 334

收藏
2020-07-07

共1个答案

小编典典

这为我解决了:

以管理员身份* 打开Windows Powershell *

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/

2020-07-07