-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when install in another partition npm is not working #46
Comments
I assume your |
no, my computer has only one physical disk
|
Which version of Go did you use to run your test? |
|
ran into the same issue on windows8.1, with go 1.4.2. I tried to catch the err with: err := os.Rename(os.TempDir()+"\\nvm-npm\\npm-"+npmv,env.root+"\\v"+version+"\\node_modules\\npm")
if err != nil {
fmt.Println(err)
os.Exit(1)
} And it turned out there is one: |
Update I made some change to fix the problem. Instead of using system temp dir, I created a new directory I changed Works fine. I'll make a pull request soon. In fact this is the first time I write sth in Go, never touched it before trying to solve this problem. Hopefully I'm coding in the right manner, really know little about Go. |
download and unzip npm in a temp directory under the nvm root. fix issue coreybutler#46
Hello to all of you, First of all thx for this great tool. Second: Nice seeing that this fix is already incooperated into the codebase because it hit me today as well. Are there any plans (especially a date) when a new release of the node-nvm will land? |
when i install the nvm in
d:\nvm
and use
nvm install latest 32
to install nodeit seems npm is not installed properly
the
node_modules
under the latest installed node is emptyi view the code, and the problem seem to be
this line in
nvm.go
:it seems using os.Rename to rename directories between different partitions is not working properly
issue #24 may be related
The text was updated successfully, but these errors were encountered: