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
------------------
求大神解释一下!!
牛奶老哥哥