From 3fb527a618175061e8c27eefb1ff5b1f09c9ad2e Mon Sep 17 00:00:00 2001 From: Abhirama Aji Mahardhika <97981320+4ether@users.noreply.github.com> Date: Fri, 28 Nov 2025 19:08:13 +0700 Subject: [PATCH] fix: npm extraction path in nvm.go --- src/nvm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvm.go b/src/nvm.go index 7a442222..5ad9453b 100644 --- a/src/nvm.go +++ b/src/nvm.go @@ -750,7 +750,7 @@ func install(version string, cpuarch string) { 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")) + err = file.Unzip(filepath.Join(root, "temp", "npm-v"+npmv+".zip"), filepath.Join(tempDir, "nvm-npm")) if err != nil { status <- Status{Err: err} }