-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[BUG] Cannot find module '@npmcli/config' #6635
Comments
still happening with facda25 |
You have to first run |
@polyzen thank you!
Preferably, git wasn't a requirement. Is there a way around that? |
What worked for me is moving the missing directories from workspaces to node_modules:
that way I was able to execute |
It seems that Node 18 fixed the issue but then the issue regressed in Node 20. I am looking at it again :) Thanks for all the awesome comments. So helpful. |
The only thing that worked for me was deleting my nodejs folder located in programfiles/nodejs and then my nvm folder located in user/AppData/Roaming/nvm. Then doing a complete re install of node js. |
I am getting this error all of the sudden and cannot run any npm commands. What should I do? Error: Cannot find module '@npmcli/arborist'
|
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
It looks like the require of that config package isn't loading. This is a clean install.
Node v20.3.1
I cannot run any npm cli commands either. This happened around the same time debugging workspaces and Windows path problems.
Expected Behavior
No response
Steps To Reproduce
Environment
; copy and paste output from `npm config ls` here
Cannot run npm commands.
The text was updated successfully, but these errors were encountered: