npm install vscode出现"Unexpected end of JSON input while parsing near"错误解决方法
第一种:删掉package.lock.json第二种:清除cache命令:npm cache clean --force第三种:进入下面这个文件夹,把文件夹npm-cache下的内容删除掉(暴力清除cache)路径:C:/Users/用户名/AppData/Roaming/npm-cacheps:试了好几次最后第三种删文件夹有用...
·

第一种:删掉package.lock.json
第二种:清除cache
命令:npm cache clean --force
第三种:进入下面这个文件夹,把文件夹npm-cache下的内容删除掉(暴力清除cache)
路径:C:/Users/用户名/AppData/Roaming/npm-cache
ps:试了好几次最后第三种删文件夹有用
之后再次运行npm install vscode命令就ok了
更多推荐
所有评论(0)