清除缓存:npm cache clean --force
经常使用nvm 切换node版本,npm的版本又不相同,出现了这个报错,查询解决方案,命令行运行npm cache clean --force解决
If you are behind a proxy, please make sure that the network 'proxy' config is set properly. See: 'npm help config'
今天又遇见这个错,
使用npm cache clean --force 也可以解决
但是好像还有一个解决方案
npm config set registry http://registry.npmjs.org/
文档解释
Sometimes npm's cache gets confused. You can reset it using: