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
nvm not working in 32/64 bit situations for Windows 7 #191
Comments
Sorry to ask the obvious question, but did you try restarting the terminal window? On Win7, sometimes it still chokes the first time you attempt to use a specific version (mklink). |
Yes.. I did. I tried restarting the terminal window.. then even the machine.. neither changed the result. |
OK - I'll look into this if I have time. Unfortunately, Win7 isn't something I often get around to. |
To all, for reference regarding Win7: https://github.com/coreybutler/nvm-windows/wiki/Support-for-Windows-7-and-Earlier |
@kgentes - I will assume that before nvm you installed the 64-bit version of node, and installed nvm using the defaults. After uninstalling node, make sure the directory where node was originally installed has been removed and not just empty. For Windows 7, 64-bit, the default is "C:\Program Files\nodejs". If the "nodejs" directory still exists then the "nvm use" command can't make the symbolic link to the node version under nvm's control. I had the same problem until I manually deleted the "nodejs" directory. Hope that helps |
Thanks @pleverett .. I will try that soon.. appreciate the heads up. |
@pleverett THANK YOU SIR! This worked as you advertised! Superlike! This thread can be closed. Probably should be marked as a solution (not sure if that is something that can be done, here, I am new to this ecosystem) for future Windows 7 users who might run into this problem. NVM for Windows is working seamlessly now, once I removed the "C:\Program Files\nodejs" ("C:\Program Files (x86)\nodejs" for 32bit) directory that apparently doesn't get removed by default of the uninstaller. Along with that directory I also removed: Although that was probably not necessary. Anyways, all is working. Thanks! |
another related issue---
At the moment, none of the information except the one variable below changes. all others stay the same. And it appears there is only one version of globally installed node modules. if I am only changing from the 64bit version of 6.3.0 to the 32 bit version of 6.3.0, will I have the same global node modules installations? or will it make distinct ones? Or do I need to make a version change to get different set of globally installed node modules? Ideally, I would think it would keep a unique context for each bit version (because of native node modules like libxml-??? etc), but I can see why others might not like it to work that way. Am I still using it wrong? or is this a related bug? |
since this is still working on the same thread, I wanted to reopen this rather than create a new issue... [see previous comment for my updated status] |
@kgentes - I'm sorry I missed this... it probably should be a different issue. If you are only switching from 32->64bit or vice versa, NVM4W will use the same global I'm closing this since the subject is a bit different. Feel free to open a new issue if you like. |
My Environment
I have already...
My issue is related to (check only those which apply):
Expected Behavior
I am running Windows 7 / 64 bit
I installed (with admin priv) the NVM for Windows 1.1.1. From there, I used
I then called
nvm list
resulting in
I then ran
nvm use 6.3.0 64
and then
node -v
and expected to get
v6.3.0
Actual Behavior
When running
node -v
I get
Also even after setting the nvm use command, I note the list does not seem to confirm the "use" command is working. As in:
From the screen shots in the https://github.com/coreybutler/nvm-windows page, I believe that the
nvm list
command should be returning something like this below (but I am NOT getting this)It does not have the asterisk or the "in use" indicator.
Possibly, this will also help diagnose the problem, but when I do the
nvm arch
command I get the following strange results, regardless of what I have set innvm use
:Steps to reproduce the problem:
Steps to reproduce are already given in above expected behavior section. I already tried possible recommendations in other issues, such as Issue #146 , as well as restarting shell, restarting computer, and insuring everything was done with admin privileges. Before beginning all of this, I uninstalled previous versions of Node that was on the computer. (then installed nvm-windows and followed your instructions).
The text was updated successfully, but these errors were encountered: