vue 初始化项目报错
F:\creatGit>npm install webpack -g npm ERR! Unexpected end of JSON input while parsing near '...rimraf-2.0.0.tgz"},"e' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2018-06-01T09_34_35_682Z-debug.log F:\creatGit>npm cache clean --force npm WARN using --force I sure hope you know what you are doing. F:\creatGit>npm install webpack -g C:\Users\Administrator\AppData\Roaming\npm\webpack -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js
执行
npm cache clean --force
然后再吃初始化