-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
npm version shipped with node 10.7.0 yelds its not compatible with node 10.7.0 #21885
Comments
Can't confirm anything like this on Win10 x64 machine. |
I can’t reproduce this on Ubuntu, either. When you say “clean install”, what exactly does that mean? That if you remove npm’s directory and re-install it, that doesn’t help? |
I'm getting this on Win10 x64.
|
Given the lack of a follow up and the fact that we're now significantly past 10.7.0, I'm going to close this out. Feel free to reopen if you believe this to still be an issue that needs addressing. |
Same problem with Node v10.15.1 on 64-bit Windows 10 (with a bit different stack trace):
|
@trygve-lie or @apapirovski , can you please reopen this? |
@mrts first, run |
@bricss , no luck unfortunately (I'm using npm that is bundled with Node.js):
Can I provide more information or help to debug this further in any other way? I did look into source and I can see that the error can only happen when the function is called with 5 arguments instead of 7. It's quite baffling that this happens with the npm bundled with Node.js. |
Still no resolve? I tried updating my node to 10.15.1 today and NPM is behaving the same way. npm version is 6.4.1. I followed recommended steps and
Edit: Using windows 8.1 👎 |
I was having the same issue and eventually tracked it down to old files being left behind in My guess is that I got into this state by installing the newer nodejs over top of the old one, and there's a bug in the upgrade path where files that aren't required any more are not removed. After this point even uninstalling nodejs entirely doesn't remove the "bad" files - the installer probably only removes the stuff it thinks it installed. This is all supposition on my part as I never watched what the upgrade process did. |
I had the same problem on Windows 10. After reading @ificator comment I just uninstalled nodejs, manually removed the leftover nodejs folder in %programfiles% and installed nodejs again. That fixed it for me. |
Thanks @ificator ! I had the same problem for a day and couldn't find a fix till I tried your solution. |
Thanks, @ificator! It works for me after deleting 2 folders other than |
@ificator It works, thank you so much for sharing this trick! |
In my case I didn't have any leftover folders inside Program Files. But I had couple of folders(npm and npm-cache) in "C:\Users{username}\AppData\Roaming" folder. Deleted them permanently and reinstalled node. Works fine now. |
After uninstallling nodejs from your system you have to manually remove all the files in This worked for me |
So how exactly could I solve this issue on a raspberry pi? |
it worked for me |
@ificator thanks for your solution! It worked for me on Windows |
Clean install of node 10.7.0 on Ubuntu. When running
npm install
in any module the following is yeld:npm --version
yelds 6.1.0, which are the npm version bundeled with node 10.7.0.The result is that nothing is installed.
The text was updated successfully, but these errors were encountered: