Skip to content

Commit c6c5d2a

Browse files
committed
Clean symlinks
1 parent 58d157c commit c6c5d2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nvm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"./nvm/file"
1414
"./nvm/node"
1515
"strconv"
16-
"filepath"
16+
"path/filepath"
1717
"github.com/olekukonko/tablewriter"
1818
)
1919

@@ -265,7 +265,7 @@ func install(version string, cpuarch string) {
265265
tempDir := filepath.Join(env.root, "temp")
266266

267267
// Extract npm to the temp directory
268-
file.Unzip(filepath.Join(tempDir, "npm-v"+npmv+".zip", tempDir, "nvm-npm"))
268+
file.Unzip(filepath.Join(tempDir, "npm-v"+npmv+".zip"), filepath.Join(tempDir, "nvm-npm"))
269269

270270
// Copy the npm and npm.cmd files to the installation directory
271271
os.Rename(filepath.Join(tempDir, "nvm-npm", "npm-"+npmv, "bin", "npm"),filepath.Join(env.root, "v"+version, "npm"))

0 commit comments

Comments
 (0)