提交 c6c5d2ab 编写于 作者: C Corey Butler

Clean symlinks

上级 58d157c2
......@@ -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"))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册