vue cli 生成脚手架报错
来源:4-2 Vue 环境中配置 Jest

qq_慕尼黑1028606
2019-08-21
老师 选择完之后会报错 试了很多次 重新装了cli 也是这样
Vue CLI v3.8.4
✨ Creating project in C:\Users\41006\Desktop\jest.
? Initializing git repository…
⚙ Installing CLI plugins. This might take a while…
npm ERR! Unexpected end of JSON input while parsing near ‘…x\nkqsD\r\n=EGKI\r\n-’
npm ERR! A complete log of this run can be found in:
npm ERR! F:\Develop\nodejs\node_cache_logs\2019-08-21T12_37_41_508Z-debug.log
ERROR command failed: npm install --loglevel error
写回答
2回答
-
qq_慕尼黑1028606
提问者
2019-08-21
npm cache clean --force 可以解决 遇到的同学看一下
00 -
qq_慕尼黑1028606
提问者
2019-08-21
{
"lockfileVersion": 1
}
npm install --loglevel error
00
相似问题
脚手架初始化失败
回答 2