-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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] npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\userName\AppData\Roaming\npm' #6971
Comments
Not enough to reproduce here. It looks like your node installation itself might be invalid but there's no way to know from what's here. |
@wraithgar I can reproduce (and we are not alone):
Repro:
|
If you create the folder name 'npm' in C:\Users<username>\AppData\Roaming directory. It solves the issue. My hunch is that somewhere in the script file this folder path is referred. It seems to be an orphaned entry. |
this solved it for me thanks a bunch |
Thank you so much, this fixed mine as well |
Thanks a lot....It really worked |
this method worked for me |
Still having the same issues, npm already exists in the roaming folder beforehand |
thanks for the solution, this worked for me too |
UPD: nvm, it fixed itself after updating npm: |
Whoa, thanks boss. I just created a new 'npm' folder and it worked. |
@Gabmond you could just update npm xd #6971 (comment) |
I already sorted it out, but thanks though. |
this worked for me too... |
Plug the powerstrip into itself = infinite electricity |
this works for me. |
Thanks! This solved my problem. |
^ worked for me, thanks! |
clean global install, the suspected root of the issue is different user priv of original node installer vs current npm locale (ie work laptop has local file system and network file system, a global install in the network file system does not propagate correctly to the local file system0 |
Thanks a lot! This solved my problem. |
Thank you so much. It solved my issue 🌟 |
this is working |
Thank you very much!!! It was the only thing that worked for me. |
its also worked for me thanks bro |
Thanks a lot it worked for me also |
Thanks mate it still works |
It's worked thankyou |
Thank you, this method worked for me.🥳🎉 |
thank you, sir |
This is still an issue, installed |
it worked for me thanks alot |
Thank you sir! |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When "npm install" runs on pipeline server, sometimes below error occurs:
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\userName\AppData\Roaming\npm'
Expected Behavior
npm install succeeds with no error
Steps To Reproduce
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\userName\AppData\Roaming\npm'
Workaround may be to create a C:\Users\userName\AppData\Roaming\npm folder manually.
Environment
npm:9.6.7
Node.js:18.17.1
OS Name:Windows
npm config:
; copy and paste output from `npm config ls` here
The text was updated successfully, but these errors were encountered: