-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
cannot install or use npm #57963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Fix bug. In System Environment (Edit Environment Variable), there was an unused path 'C:\Program Files\nodejs\node_modules\npm\bin'. Delete it will solve the problem. |
How did you install Node.js? Was it via an official method? Also see #52682 |
|
Version
v20.10.0 same thing happen with v22.x
Platform
Subsystem
No response
What steps will reproduce the bug?
i just dowload nodejs then trying to run npm. did put 'C:\Program Files\nodejs' and '\AppData\Roaming\npm' in system path.
I also reinstall many time but not working
How often does it reproduce? Is there a required condition?
install node and it happen
What is the expected behavior? Why is that the expected behavior?
npm working
What do you see instead?
cannot find module (i mentioned above)
Additional information
No response
The text was updated successfully, but these errors were encountered: