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

我是执行npm i的时候出现的这个警告,后面还跟了很多错误,我就一直在搜索这个问题,其实下面的错误不是它导致的,它只是个警告,说的是版本不匹配大概意思。

其实应该是npm版本吧问题,我这边解决方法,执行:

 sudo rm -rf node_modules package-lock.json && npm install 

这样就可以运行了

 

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

上一篇:java jar 后台运行


下一篇:Atitit.隔行换色  变色 css3 结构性伪类选择器