Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error installing NodeJS 14.19.2 with npm version 6.14.17 #799

@robi-wan

Description

@robi-wan

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions