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