关于npm安装包,一直报错

lenovo@LAPTOP-10HEQPDE MINGW64 ~

$ npm install webpack -g

npm ERR! Unexpected end of JSON input while parsing near '....0.3","eslint":"^4.14'


npm ERR! A complete log of this run can be found in:

npm ERR!     C:\dev\nvm\npm-cache\_logs\2018-07-09T13_03_42_573Z-debug.log

--------------

如代码所示,下面是node和npm版本


lenovo@LAPTOP-10HEQPDE MINGW64 ~

$ node -v

v10.6.0


lenovo@LAPTOP-10HEQPDE MINGW64 ~

$ npm -v

6.1.0

------------------

求大神解释一下!!

前端小蜗牛_
浏览 2451回答 1
1回答

牛奶老哥哥

npm cache clean --force试下这个再 install ?
打开App,查看更多内容
随时随地看视频慕课网APP