Skip to content

Commit

Permalink
Fix npm install
Browse files Browse the repository at this point in the history
There seems to have been a hiccup when refactoring the temp dir for NPM. See how [the tempDir variable](coreybutler@7de073e#diff-c4d480f687d74c39997fc58e33d300c73cfb458321c2ab26c765772db70a679eL498) was modified -- the line to unzip then proceeds to unzip from the wrong location. This should solve coreybutler#1209 -- untested.
  • Loading branch information
kwikwag authored Jan 12, 2025
1 parent f538704 commit 45e1cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}
Expand Down

0 comments on commit 45e1cde

Please sign in to comment.