Skip to content
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

Error installing NodeJS 14.19.2 with npm version 6.14.17 #799

Closed
robi-wan opened this issue May 9, 2022 · 13 comments
Closed

Error installing NodeJS 14.19.2 with npm version 6.14.17 #799

robi-wan opened this issue May 9, 2022 · 13 comments

Comments

@robi-wan
Copy link

robi-wan commented May 9, 2022

Issue:
I do not know if this is an issue with nvm for Windows or NodeJS:
I cannot get NodeJS 14.19.2 (more specifically: npm v6.14.17) to install with nvm v1.1.9:

How To Reproduce:

C:\Users\user>nvm install 14.19.2
Downloading node.js version 14.19.2 (64-bit)...
Complete
Downloading npm version 6.14.17... Download failed. Rolling Back.
Rollback failed. remove C:\development\tools\nvm\temp\npm-v6.14.17.zip: The process cannot access the file because it is being used by another process.
Could not download npm for node v14.19.2.
Please visit https://github.com/npm/cli/releases/tag/v6.14.17 to download npm.
It should be extracted to C:\development\tools\nvm\v14.19.2

C:\Users\user>nvm version
1.1.9

NodeJs is downloaded to c:\development\tools\nvm\v14.19.2\node64.exe.

A file c:\development\tools\nvm\temp\npm-v6.14.17.zip is also created but it is not a ZIP archive - it is a text file with this content:

the given path has multiple possibilities: #<Git::Ref:0x00007fe7bd76da98>, #<Git::Ref:0x00007fe7bd6df518>

(If it matters: I am using this git version locally:

C:\Users\user>git version --build
git version 2.36.0.windows.1
cpu: x86_64
built from commit: ea1e13f73339d57cbe81a0bae6fba669aaccf656
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon

)

Expected Behavior:
NodeJS 14.19.2 - and it's bundled npm - should install without an error.

I tried with:
Desktop:

  • Windows 11 Enterprise 21H2 (OS build 22000.613) and Microsoft Terminal (with Admin privileges) with PowerShell and cmd
  • Windows 10 Home 21H2 (OS build 19043.1645) in PowerShell (with Admin privileges)
@eugenetree
Copy link

Same

@Morkand
Copy link

Morkand commented May 9, 2022

same problem

@Kyzhoe
Copy link

Kyzhoe commented May 9, 2022

I'm having the same issue as well.

@ahmadbakhshi
Copy link

same

@diegomachado
Copy link

Got the same error and this worked for me as a temporary solution:
#373 (comment)

@coreybutler
Copy link
Owner

This appears to be an upstream issue specifically with npm 6.14.17. The remote server is providing a corrupt/incomplete file (as opposed to not providing a file at all), which is not something NVM4W has any control over. All other versions of npm are working properly.

I'm closing this because I don't think there is anything NVM4W can do to resolve this issue.

@jbalpert
Copy link

Also facing this problem

@carlirows
Copy link

I have the same issue :(

@gugulothsureshnaik
Copy link

Solutions : nvm use 14.19.0 its got installed successfully

@piyushgoswami015
Copy link

roll back to nvm 1.1.7

@s100
Copy link

s100 commented May 24, 2022

This appears to be an upstream issue specifically with npm 6.14.17. The remote server is providing a corrupt/incomplete file (as opposed to not providing a file at all), which is not something NVM4W has any control over. All other versions of npm are working properly.

I'm closing this because I don't think there is anything NVM4W can do to resolve this issue.

Any chance of providing a link to the upstream issue?

@robi-wan
Copy link
Author

@s100 This is the upstream issue: npm/cli#4890

@MyDinnerIsReady
Copy link

Hi guys, I met the same issue now, but I got a solving way.
if you installed a newer node and want to install an older one with nvm, you maybe got a problem with installing npm like me.
And you could try to uninstall those nodes, install the older one first, then install a newer one.
It works for me.
I think it's due to the older npm install package being out of date, but maybe the new one still works.
Hope it will help you.
Hello world~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests