npm WARN tar ENOENT: no such file or directory, open

删除 package.lock.json,然后重新 npm install 即可

解决npm ERR! Unexpected end of JSON input while parsing near

1.删掉package.lock.json
2.清除cache

npm cache clean --force

3.进入下面这个文件夹清除cache
路径:C:/Users/PC/AppData/Roaming/npm-cache

执行:npm cache clean --force

4.不要用淘宝镜像。

npm set registry https://registry.npmjs.org/

windows下解决node-sass安装失败(Cannot download "https://github.com/sass/node-sass/rele)

npm config set proxy http://127.0.0.1:1080
npm i node-sass

下载完成后删除 http 代理

npm config delete proxy
Last modification:November 8, 2020
If you think my article is useful to you, please feel free to appreciate