cuznerdexter
cuznerdexter

Reputation: 596

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

I am using Angular in NX workspace with NGRX and want to build it in Jenkins but I am getting errors after running npm install.

Anyone see errors like this after running: nx update && then 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/[email protected] does not satisfy @ngrx/[email protected]
npm ERR!     Invalid: lock file's @ngrx/[email protected] does not satisfy @ngrx/[email protected]

The actual app works fine - using nx serve

I want to fix the errors so I can run my Jenkins job. Any advice?

Upvotes: 1

Views: 2921

Answers (1)

Emanuele Tuttolani
Emanuele Tuttolani

Reputation: 141

As you can read, you’re having version differences between package.json and package-lock.json.

Delete package-lock.json and run npm i again.

Upvotes: 1

Related Questions