➜ npm audit
npm ERR! code ENOLOCK
npm ERR! audit This command requires an existing lockfile.
npm ERR! audit Try creating one first with: npm i --package-lock-only
npm ERR! audit Original error: loadVirtual requires existing shrinkwrap file
我运行 npm audit 并收到此错误。
当我在下面运行时:
➜ npm config get package-lock
true
➜ npm config get shrinkwrap
true
有人可以帮忙吗?至于如何解决?和 npm audit fix –force 也不能正常工作……
原文由 facVV 发布,翻译遵循 CC BY-SA 4.0 许可协议
像这样为我工作: