NGRX - 如何修复 "Errors were found in your package-lock.json"?

NGRX - How do I fix "Errors were found in your package-lock.json"?

我在带有 NGRX 的 NX 工作区中使用 Angular 并想在 Jenkins 中构建它,但是在 运行 宁 npm install.

之后我遇到了错误

任何人在 运行ning 之后看到这样的错误: nx update && 然后 npm run audit ??

npm ERR! code ELOCKVERIFY
npm ERR! Errors were found in your package-lock.json, run  npm install  to fix them.
npm ERR!     Invalid: lock file's @ngrx/schematics@10.1.0 does not satisfy @ngrx/schematics@10.0.0
npm ERR!     Invalid: lock file's @ngrx/store-devtools@10.1.0 does not satisfy @ngrx/store-devtools@10.0.0

实际应用运行良好 - 使用 nx serve

我想修复错误,以便 运行 我的 Jenkins 工作。 有什么建议吗?

如您所见,package.jsonpackage-lock.json 之间存在版本差异。

再次删除package-lock.json和运行npm i