鍍金池/ 問(wèn)答/HTML/ npm install 報(bào)錯(cuò)

npm install 報(bào)錯(cuò)

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! 這是什么 錯(cuò)誤???

回答
編輯回答
愚念
this version of npm is compatible with lockfileVersion@1, but
npm-shrinkwrap.json was generated for lockfileVersion@
這個(gè)版本的npm與lockfileVersion@1兼容,但是你的npm-shrinkwrap.json由lockfileVersion@0. I生成

更新一下lockfileVersion

2018年4月10日 15:40
編輯回答
囍槑

你的npm版本和lockfileVersion@1相匹配,但是你現(xiàn)在是lockfileVersion@0,所以出現(xiàn)了版本不匹配的錯(cuò)誤。你可以安裝下 lockfileVersion@1版本

2018年6月5日 19:12
編輯回答
莓森

樓主你好,我也遇到了這個(gè)問(wèn)題,請(qǐng)問(wèn)是怎么解決的,謝謝!

2017年7月28日 13:16