[BUG] Failed to install any package with ERROR Code"npm ERR! Cannot read property 'insert' of undefined" #4876
Closed
2 tasks done
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Why I don't use the latest version of npm:I even can't update npm by using "sudo npm i -g npm".
The environment information:
node version: v12.22.9
npm version: v8.5.1
WSL version:
Build: 22598
Release: Ubuntu 22.04 LTS
Kernel: Linux 5.10.102.1-microsoft-standard-WSL2
This problem also exists in these websites:
https://serveanswer.com/questions/npm-install-error-npm-err-cannot-read-property-insert-of-undefined
https://stackoverflow.com/questions/72004247/npm-install-error-npm-err-cannot-read-property-insert-of-undefined/72183748#72183748
They use the same version of node and npm as I , but I can't know if they are also using WSL too.
Expected Behavior
Install normally.
Steps To Reproduce
sudo npm i -g npm
Actually , whatever package I install , it fails with the same ERROR Code.
Environment
The text was updated successfully, but these errors were encountered: