npm ERR! 在1:379680意外的input结束

我最近安装了最新版本的nodejs ie v8.1.3,我使用的是Windows 10

之后,我想安装cordova和离子软件包,所以我执行了命令

npm install -g ionic cordova 

运行这个命令后,我得到了下面的错误! 我厌倦了,因为这个错误在谷歌search还没有。

这是我在CMD控制台上的错误日志

 npm ERR! Unexpected end of input at 1:379680 npm ERR! .1","osenv":"~0.1.3","path-is inside":"~1.0.1","read":"~1.0.7","read- npm ERR! ^ npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\SYS73M CR4CK3R\AppData\Roaming\npm-cache\_logs\2017-07-10T13_45_29_711Z-debug.log 

请帮忙_ / _

什么解决了我的运行

 npm cache clean --force 

“意外的input结束”意味着无法下载文件,请使用“npm config set registry https://registry.npm.xxxxx.org ”更改镜像地址。

同样在这里,并用@Thomas的想法修复。

我认为你应该阅读debug.log,我有很多“HTTP获取GET 304 HTTPS:// xxxxxxx (从caching)”,所以它似乎是错误的npmcaching。