npm cache clean
通常情况下,删除 node_modules 文件夹是安全的,因为它可以由软件包管理器重新生成。 重新安装时可能会更改软件包版本(除非您有一个 *.lock 文件)。
node_modules
*.lock
npm i
node_modules/.cache
.cache
npm cache clean
: https://docs.npmjs.com/cli-commands/cache.html - jonrsharpe