Skip to content

Commit

Permalink
Clean symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
coreybutler committed Jul 15, 2017
1 parent 58d157c commit c6c5d2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"./nvm/file"
"./nvm/node"
"strconv"
"filepath"
"path/filepath"
"github.com/olekukonko/tablewriter"
)

Expand Down Expand Up @@ -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"))
Expand Down

0 comments on commit c6c5d2a

Please sign in to comment.