Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm ERR! Cannot read property 'extraneous' of undefined

Tags:

node.js

This error occurs when I use npm to install npm i jquery

npm ERR! Cannot read property 'extraneous' of undefined

npm ERR! A complete log of this run can be found in:
like image 788
August Avatar asked Sep 09 '25 17:09

August


2 Answers

Try removing your package-lock.json:

rm package-lock.json

git checkout master package-lock.json

Erasing the lock file is not such a great idea:

  • https://tkdodo.eu/blog/solving-conflicts-in-package-lock-json
  • https://siderite.dev/blog/npm-gotcha-commit-and-do-not-delete.html/
  • Deleting `package-lock.json` to Resolve Conflicts quickly
like image 27
Arelav Avatar answered Sep 12 '25 08:09

Arelav



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!