gpt4 book ai didi

node.js - NPM 安装错误 :Unexpected end of JSON input while parsing near '...nt-webpack-plugin" :"0'

转载 作者:IT老高 更新时间:2023-10-28 21:48:17 28 4
gpt4 key购买 nike

创建新的 Angular 5 项目时:

Node 版本: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

The error log is here

最佳答案

这为我解决了:

以管理员身份打开 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/

关于node.js - NPM 安装错误 :Unexpected end of JSON input while parsing near '...nt-webpack-plugin" :"0' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47675478/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com