美文网首页
nodejs——npm info underscore报错

nodejs——npm info underscore报错

作者: 一只飞 | 来源:发表于2018-05-27 11:15 被阅读0次
npm info underscore
npm ERR! registry error parsing json
npm ERR! Unexpected end of JSON input

本来想安装webpack,

npm install webpack --save-dev
npm ERR! Unexpected end of input at 1:40721
npm ERR! 10,"noattachment":false,"tarball":"http://registry.npm.taobao.org/neo
npm ERR!                                                                      ^

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\13035\AppData\Roaming\npm-cache\_logs\2018-05-27T03_00_55_756Z-debug.log

感觉像镜像有点问题。
解决:
npm config set registry "http://registry.npmjs.org"

原网址:https://stackoverflow.com/questions/30787702/npm-err-registry-error-parsing-json-while-trying-to-install-cordova-for-ionic

相关文章

网友评论

      本文标题:nodejs——npm info underscore报错

      本文链接:https://www.haomeiwen.com/subject/fmhbjftx.html