npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion

715 阅读1分钟

npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I’ll try to do my best with it!报错 这个报错是因为package-lock.json中的版本不匹配,需要删除这个文件,然后重新执行npm install 就好了