Skip to content

[Issue]: Unable to install npm on older nodejs versions #1209

@suyar

Description

@suyar

What happened?

When I install nodejs 14, I get the following error:

error installing 14.21.3: open C:\Users\su\AppData\Local\Temp\nvm-npm-2016208765\npm-v6.14.18.zip: The system cannot find the file specified.

Using nvm install lts is fine.

What did you expect to happen?

Install older versions of nodejs correctly.

Version

1.2.0 or newer (Default)

Which version of Windows?

Windows 11+ (Default)

Which locale?

Asian

Which shell are you running NVM4W in?

PowerShell

User Permissions?

Standard User, Elevated

Is Developer Mode enabled?

None

Relevant log/console output

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

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

Debug Output

PS C:\Users\su> nvm debug
su is not using admin or elevated rights.

Windows Version:        10.0 (Build 26100)

Windows Developer Mode: UNKNOWN

NVM4W Version:          1.2.2
NVM4W Author Bridge:    1.0.1
NVM4W Path:             D:\Soft\nvm\nvm.exe
NVM4W Settings:         D:\Soft\nvm\settings.txt
NVM_HOME:               D:\Soft\nvm
NVM_SYMLINK:            D:\Soft\nodejs
Node Installations:     D:\Soft\nvm
Default Architecture:   64-bit
Mirrors:                No mirrors configured
HTTP Proxy:             none

Total Node.js Versions: 0
Active Node.js Version: none
(run "nvm use <version>" to activate a version)
NVM_SYMLINK does not exist yet. This is auto-created when "nvm use" is run.

IPv6 is enabled. This has been known to slow downloads significantly.

No problems detected.

⚠️  NVM for Windows will eventually be succeeded by Author/Runtime


Find help at https://github.com/coreybutler/nvm-windows/wiki/Common-Issues

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions