npm install 为什么报错 xxx was generated for lockfileVersion@0?

read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0. I'll try to do my best with it!

这是什么 错误啊?

阅读 11.1k
4 个回答
this version of npm is compatible with lockfileVersion@1, but
npm-shrinkwrap.json was generated for lockfileVersion@
这个版本的npm与lockfileVersion@1兼容,但是你的npm-shrinkwrap.json由lockfileVersion@0. I生成

更新一下lockfileVersion

你的npm版本和lockfileVersion@1相匹配,但是你现在是lockfileVersion@0,所以出现了版本不匹配的错误。你可以安装下 lockfileVersion@1版本

切换高版本node试试,我这边已经解决了

推荐问题