Skip to content

[Issue]: npm install error #1240

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

Open
baiyajin opened this issue Mar 7, 2025 · 19 comments
Open

[Issue]: npm install error #1240

baiyajin opened this issue Mar 7, 2025 · 19 comments

Comments

@baiyajin
Copy link

baiyajin commented Mar 7, 2025

What happened?

C:\Users\Administrator>nvm install 14.21.3
Downloading node.js version 14.21.3 (64-bit)...
Complete
Downloading npm...
Creating C:\Users\Administrator\AppData\Local\Temp\nvm-install-3382161075\temp

Downloading npm version 6.14.18... Complete
Installing npm v6.14.18...
error installing 14.21.3: open C:\Users\Administrator\AppData\Local\Temp\nvm-npm-4204267377\npm-v6.14.18.zip: The system cannot find the file specified.

What did you expect to happen?

C:\Users\Administrator>nvm install 14.21.3
Downloading node.js version 14.21.3 (64-bit)...
Complete
Downloading npm...
Creating C:\Users\Administrator\AppData\Local\Temp\nvm-install-3382161075\temp

Downloading npm version 6.14.18... Complete
Installing npm v6.14.18...
error installing 14.21.3: open C:\Users\Administrator\AppData\Local\Temp\nvm-npm-4204267377\npm-v6.14.18.zip: The system cannot find the file specified.

Version

1.2.0 or newer (Default)

Which version of Windows?

No response

Which locale?

None

Which shell are you running NVM4W in?

No response

User Permissions?

Administrative Privileges, Elevated

Is Developer Mode enabled?

None

Relevant log/console output

Debug Output

C:\Users\Administrator>nvm install 14.21.3
Downloading node.js version 14.21.3 (64-bit)...
Complete
Downloading npm...
Creating C:\Users\Administrator\AppData\Local\Temp\nvm-install-3382161075\temp

Downloading npm version 6.14.18... Complete
Installing npm v6.14.18...
error installing 14.21.3: open C:\Users\Administrator\AppData\Local\Temp\nvm-npm-4204267377\npm-v6.14.18.zip: The system cannot find the file specified.

Anything else?

No response

@ikhbalfuady
Copy link

ikhbalfuady commented Mar 7, 2025

i have same issue, i think its bugs, when trying to copying npm file.
try to use another version like v1.1.12

ref : #1229

@torselden
Copy link

Same issue here och version 1.2.2
I found on file though in
AppData\Local\Temp\nvm-install-1573846107\temp\npm-v6.14.13.zip

@ecohortFJS
Copy link

I have the same error with another nodejs version

@torselden
Copy link

This should be fixed by mergin #1220.
Also this is possibly a duplicate of #1209

@ecohort
Copy link

ecohort commented Mar 7, 2025

This should be fixed by mergin #1220. Also this is possibly a duplicate of #1209

Thank you very much for your prompt response.
For the moment I solved it with a downgrade to 1.1.12 and it works perfectly

@proCoderSid
Copy link

Duplicate issues
#1209, #1221, #1224, #1229, #1240

@proCoderSid
Copy link

This issue occurs in all versions older than v16.10.0

@techiegm
Copy link

@coreybutler NVM for Windows v1.2 is unusable for any node versions below v16.10. There is already a pull request to fix this (#1220), please could you publish a release with this fix?

@coreybutler
Copy link
Owner

I know I've been slow to release v1.2.3 with the fix, and I apologize for that. I don't need the PR (I'd already fixed it), but I've been busy trying to get an Azure spot instance with Windows 11 ARM64 setup as a GitHub runner. Turns out that is the only way we can continue supporting ARM builds (which are also new in 1.2.x) since Qemu emulation isn't doing the trick. In other words, this issue is kind of blocked by the automated build process.

@techiegm
Copy link

Happy to know it's on the radar and fingers crossed you're able to get the Github runner woes sorted

@odrumond
Copy link

Hi! Sorry for pushing you but you have any news on that @coreybutler?

@BinToss
Copy link

BinToss commented Apr 15, 2025

At

nvm-windows/src/nvm.go

Lines 745 to 754 in f538704

// new temp directory under the nvm root
tempDir, err := os.MkdirTemp("", "nvm-npm-*")
if err != nil {
status <- Status{Err: err}
}
defer os.RemoveAll(tempDir)
// Extract npm to the temp directory
err = file.Unzip(filepath.Join(tempDir, "npm-v"+npmv+".zip"), filepath.Join(tempDir, "nvm-npm"))
if err != nil {
in origin:master@HEAD, the path passed to the unzip function is still incorrect.
Corey, is your fix for this unmerged or not pushed yet?

@mawais-afz
Copy link

Facing same error:

❯ nvm install 14
Downloading node.js version 14.21.3 (64-bit)...
Complete
Downloading npm...
Creating C:\Users\MUHAMM~1\AppData\Local\Temp\nvm-install-2773513892\temp

Downloading npm version 6.14.18... Complete
Installing npm v6.14.18...
error installing 14.21.3: open C:\Users\<user-name>\AppData\Local\Temp\nvm-npm-3757959535\npm-v6.14.18.zip: The system cannot find the file specified.

@arharutyu
Copy link

arharutyu commented May 18, 2025

I'm getting the same issue for 14.15.4:

node v14.15.4 is not installed. Type "nvm list" to see what is installed.
Downloading node.js version 14.15.4 (64-bit)...
Complete
Downloading npm...
Creating C:\Users\ARGINE~1\AppData\Local\Temp\nvm-install-4072800141\temp

Downloading npm version 6.14.10... Complete
Installing npm v6.14.10...
error installing 14.15.4: open C:\Users\ARGINE~1\AppData\Local\Temp\nvm-npm-4131144567\npm-v6.14.10.zip: The system cannot find the file specified.

Any chance there is a timeline for the fix to be merged?

Alternatively - has anyone found a workaround to get a pre-17 version working?

@OrangeDog
Copy link

Windows ARM is a very small userbase. It should not block an x86 release for everyone else.

@coreybutler
Copy link
Owner

@OrangeDog what metrics do you have supporting the claim that ARM is a small userbase?

@OrangeDog
Copy link

@coreybutler they are only just approaching 13% of new PC sales, and not all of those are running Windows.
https://www.tomshardware.com/pc-components/cpus/arm-pc-market-share-wont-rise-above-13-percent-in-2025-says-abi-research

It's miniscule compared to all the x86 Windows systems already in use.

@coreybutler
Copy link
Owner

@OrangeDog what about servers?

I appreciate the desire and encouragement to release. I too am frustrated with issues like this one. Regardless, I have to remain vigilant of the ripple effect releases have.

I've never really spoken about it, but once a release is published, there is a period of time where several of the antivirus platforms mark it as a virus (many AV providers rely on weak ML algorithms that produce a lot of false positives). There are governance/provenance reports that have to be issued. I inevitably get emails with CrowdStrike reports from governments, militaries, financial institutions, etc... all of which need verification that the software is indeed safe. The point is releases consume a lot of my time, so I don't take them lightly.

If only 5% of the userbase uses ARM, that's still 650K users. I don't have the bandwidth to release now, then again later. I'm trying to assure the next release is stable for everybody.

@OrangeDog
Copy link

Windows doesn't even support ARM for server images yet. You have to be on insider preview to get them.

5% is still a wild overestimate.

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