From c6c5d2abc10091fe578ce5ca8ee3158dddc04917 Mon Sep 17 00:00:00 2001 From: Corey Butler Date: Sat, 15 Jul 2017 13:30:17 -0500 Subject: [PATCH] Clean symlinks --- src/nvm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nvm.go b/src/nvm.go index 3f334475..c82bcc76 100644 --- a/src/nvm.go +++ b/src/nvm.go @@ -13,7 +13,7 @@ import ( "./nvm/file" "./nvm/node" "strconv" - "filepath" + "path/filepath" "github.com/olekukonko/tablewriter" ) @@ -265,7 +265,7 @@ func install(version string, cpuarch string) { tempDir := filepath.Join(env.root, "temp") // Extract npm to the temp directory - file.Unzip(filepath.Join(tempDir, "npm-v"+npmv+".zip", tempDir, "nvm-npm")) + file.Unzip(filepath.Join(tempDir, "npm-v"+npmv+".zip"), filepath.Join(tempDir, "nvm-npm")) // Copy the npm and npm.cmd files to the installation directory os.Rename(filepath.Join(tempDir, "nvm-npm", "npm-"+npmv, "bin", "npm"),filepath.Join(env.root, "v"+version, "npm"))