-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Install problem(s) #23
Comments
Some of this is expected behavior, some is not. Placing the files in I think there is a timing issue with the installer. Frankly, I've spent more time on the installer than the tool and I'm planning to put together a new installer using BitRock's system as soon as I have time. This should alleviate a lot of these problems The Innosetup installer currently used has shown sporadic issues outside of Windows 8. The environment variables are supposed to exist in both the local and system levels. It's not terribly common, but this is what allows the shell to immediately recognize the executable. Are the multiple windows you're experiencing similar to what is seen in issue #4? Or are these with Windows UAC prompts? If you're seeing the prompts, make sure you check your user account permissions. NVM for Windows does elevate the privileges to avoid this, but the user account must still have admin privileges. Another option is to use a symlink that's not in Yes, the unix version of NVM requires you to run The I believe the issue above is the root of the same problem for receiving an erroneous I'm certainly willing to fix these issues... if I can track down what the cause is. At the moment, I don't have a Win7 box to try this on and can't recreate the issues, so any test results you have for the above scenario would be very useful. |
Thanks for the reply! Sorry you are spending so much time on the installer; I can totally understand what a bummer that'd be. I appreciate you taking the time to figure this stuff out. The multiple windows I was talking about are Windows UAC prompts. My user is an administrator. I just tried having the installer use my home folder but still encountered the UAC prompts. Not the end of the world, but a little odd. Ok, hmm.. My Win7 does not appear to have a "file" command. I'm downloading it now from here: Hey cool: I just installed file.exe, added it to my path, and now nvm no longer reports "?-bit" ! And it can switch back and forth between node versions without telling me I don't have them installed. Thanks!!! |
@bobbycircle - Thank you so much for this feedback. Until Go has a better native way to detect the bitness of a file on Windows, I'm going to bundle the I'll see if I can get a test environment setup for Windows 7 to explore the UAC prompts. That definitely shouldn't be happening. Thanks again.... really appreciate your help! I am going to close this issue after I separate the content of this thread into multiple issues... then I'll tackle them one by one and close them as the new code is released. |
Hi, I also had problems with the path but it was easily fixed by removing Here is why |
@colmsjo - I assume you were seeing duplicates in your |
I saw the raw strings like %NVM_HOME% in the path. Windows has some security pre-causions not to include variables from user space to the system space (I did not check all the details but it fixed the problem). |
Just to clarify, I only saw duplicates in my path after I uninstalled. |
@colmsjo Thanks! Removing the user vars, fixed my issues. @coreybutler (I was seeing the duplicates.) |
Thanks, @colmsjo! This has taken me awhile to figure out. I also needed to add a NODE_PATH (set to C:\Users{USER}\AppData\Roaming\npm), which I didn't have previously. |
@colmsjo I had to remove duplicate |
Stale. If this issue crops up again, please open a new issue. |
Ok, I'm having a lot of issues, but I would LOVE to get this working on my windows desktop instead of my older mac laptop. Thanks very much in advance for creating nvm for windows! I'm using Win7 64-bit.
The installer puts the files in my username\AppData\Roaming folder by default. Is this correct behavior? If these files follow me to another windows computer, will everything still work?
When cmd.exe is run at the end of the installer, it complains about a missing \settings.txt, even though it is present. If I close that cmd.exe and start a new one, the error message goes away. (Possibly the cmd.exe launched from the installer has not yet picked up the new %path% environment variable?)
Even though the '\settings.txt' error message has gone away from subsequent cmd.exe invocations, the path is still not set up properly-- %NVM_HOME% and %NVM_SYMLINK% are listed when I inspect the path from the command line. (I mentioned this in another issue thread. Workaround is to add the proper dirs to the path manually a la "set path=%path%;%nvm_home%;%nvm_symlink%").
When I open up Win7's 'Environment Variables' dialog box, it looks like the two nvm-windows variables are both in my User Variables as well as my System Variables. I'm not used to seeing variables duplicated like that.
Running "nvm use [...]" causes two separate windows security dialogs to open due to making changes to the symlink in \Program Files.
I run "nvm install 0.10.33" and it seems to work, but only after I run "nvm use ..." which is a little odd since this is the first and only node.js I've installed thus far. But maybe that's how the 'nix versions work.
When I then install another node.js, 0.11.14, install succeeds. When I "run nvm use 0.11.14" that works too. And when I run "nvm list" I can see my two installed versions, although I'm seeing "?-bit executable" instead of "64-bit".
When I try and switch from 0.11.14 to 0.10.33, I get the error "node v0.10.33 (64-bit) is not installed." I get a similar error when I run "nvm use 0.11.14".
So then I run the uninstaller for nvm-windows in the control panel. For some reason a new PATH variable is now added to my User variables where none was there before. It appears to be a copy of my System variable PATH. So now when I open a cmd.exe, my PATH is doubled in size and content. (Deleting my User variable for PATH fixes this.)
The text was updated successfully, but these errors were encountered: