Skip to content
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

Node v#.##.## not installed #37

Closed
fpatros opened this issue Jan 19, 2015 · 18 comments
Closed

Node v#.##.## not installed #37

fpatros opened this issue Jan 19, 2015 · 18 comments

Comments

@fpatros
Copy link

fpatros commented Jan 19, 2015

I am a newbie on this so bare with me.

Trying to switch between node installations does not work. When using nvm list it shows all the installed versions.
image

But when trying to switch to another version, it says it is not installed.
image

I figured I was doing something wrong so I tried to specify an architecture. Still nothing.
image

But if I keep re-installing then switching, then it works.

Running Windows 8.1
nvm installed on c:
root set to c:\nvm

Issue #30 maybe related.

And thanks btw for this. Really great piece of software @coreybutler .

@fpatros
Copy link
Author

fpatros commented Jan 19, 2015

Well, after trying several times by re-installing each time, now it seems to work.

I have no idea what happened here.

Side note - If nvm is installed on the c:\ so that the path is as I have stated above, will this allow all users to use the software as well as nodejs? I am thinking rather than installing it in the default directory ...\Roaming\...

Thanks in advance!

@coreybutler
Copy link
Owner

@fpatros - I actually think this specific issue is related to issue #23. I have not yet had a chance to add the file.exe to the distribution (the resolution for that issue), but it might resolve your problems. The key indicator here is the ?-bit... it should read 32-bit or 64-bit.

If you install to the default user directory, it should theoretically work for all users.

@fpatros
Copy link
Author

fpatros commented Jan 19, 2015

Thanks for the prompt reply @coreybutler

I always thought when you install in the roaming folder of a user, that user is the only one able to access them, save, an administrator can access everything.

The way I set up my computer is to have an admin account which I do all my installations through, but work through a user account.

Even when I installed aptana studio I installed it on the c:\ drive for that reason.

Installed nvm on the c:\ drive and logged in with the normal user account to use it. The only issue that I can find at the moment is that when I use nvm use 0.10.35 the windows UAC pops up asking me to authenticate. If I authenticate with user account, it pops up a second time [scratch head], so I authenticate again. When authenticated, it shows that it makes the switch but it actually doesn't. I test this by typing node -v which spits out 'node' is not recognized.... If I redo it but authenticate with the admin account, does not pop up a second time here, then no problems. Doing other things such as nvm install 0.11.14 under the normal user account seems to work no problem because I see the folder with all the files being created. I don't know whether or not going in as admin and allowing Full Control access under Security will do anything considering I am able to Write to this folder without that being the case.

This image shows the state of authentication while using the normal user account
image

System Variables for both accounts show nvm and symlink, but only the admin shows those same variables for the Environment Variables. Adding these variables to the Environment Variables for the user account does not solve the above problem either.

@romualdr
Copy link
Contributor

I'm also on Win 8.1 64bits and i have the same issue. I'll try to reinstall and get some logs for you guys

FYI: My install folder is also not in Program Files, but C:\Development

@romualdr
Copy link
Contributor

So after a while trying to play with the code and Go (which is a good language i must say), i found that actually the bug is in /src/arch/arch.go -> arch.Bit. exec.Path say that the file is not not found.

"file" exec doesn't seems to exist in Windows 8.1 or well, go doesn't handle it (more info here: skratchdot/open-golang#4) so this is a Windows 8.1 issue only. Also GNUFile for Windows crashes on Windows 8.1 (and that's probably the issue here).

The workaround the folks found on the issue above is good, but here we only want to know which arch the file is, so i created a workaround who simply read the first bytes until he found a correct architecture.

PR in a minute

This was referenced Mar 14, 2015
@coreybutler
Copy link
Owner

I've already fixed this in the next version. Go 1.4 offered some new capabilities to handle this natively... much cleaner.

@g0t4
Copy link

g0t4 commented Mar 17, 2015

FYI, if you had node installed before, delete C:\Program Files\nodejs and nvm windows will create the symlink

@Adam13531
Copy link

I just ran into this issue too. Corey did indeed fix it two weeks ago, but the release listed on the GitHub is from 5 months ago, so here are instructions on how to build nvm-windows yourself:

  1. Download this GitHub repo, e.g. as a zip from here.
  2. Download Go if you don't already have it.
  3. Navigate to the root of the nvm-windows-master directory. This is the project root.
  4. Open nvm.iss and set ProjectRoot to the directory from above.
  5. Open CMD and navigate to the project root.
  6. Type "build".
  7. Run the installer in \dist\nvm-setup.exe

@coreybutler - thanks for the project! I suggest adding build instructions to the README and perhaps updating your latest release with a new installer.

@coreybutler
Copy link
Owner

@Adam13531 - The latest code in master has not been tested as a release, and I have no plans to do so... mostly because I am working on a much improved version of this project. See the Gitter feed for more information.

I'll add these instructions to the wiki along with the other installer instructions in the interim.

@JeffHerb
Copy link

Not sure if this is the best place, but the nvm use latest 32 also appears to be broken in the latest release. Whenever I try the command it always returns the following error:

node vlatest (32-bit) is not installed

@coreybutler
Copy link
Owner

nvm use latest is not a supported command.... only "npm install latest". The use command expects a specific version. The "latest" keyword refers to the latest release, which may or may not be installed on your system. It is not context aware, though that's an interesting idea.

@JeffHerb
Copy link

Ah. My apologizes. I miss understood its usage. Though it would be an
amazing feature if it could work. In the mean time I will update our
internal scripts to a support release version. Thanks again.

On Wed, May 13, 2015, 2:36 PM Corey Butler [email protected] wrote:

nvm use latest is not a supported command.... only "npm install
latest". The use command expects a specific version. The "latest" keyword
refers to the latest release, which may or may not be installed on your
system. It is not context aware, though that's an interesting idea.


Reply to this email directly or view it on GitHub
#37 (comment)
.

@coreybutler
Copy link
Owner

@JeffHerb - No need to apologize. I think this could be a useful context to expand into for the next version. It's not something I thought about, but it's on my radar now.

@romualdr
Copy link
Contributor

The latest version looks like helping a lot of persons.

Maybe you could update the README to prevent recurring issues like this ? Like putting a link to this thread with a message : "If you have trouble, get the lateste repo version and try" ?

@giggio
Copy link

giggio commented Jul 17, 2015

I am also having the node v0.12.5 (64-bit) is not installed. problem. I am using NVM 1.0.6, which is the latest.
Only when I reinstall a version is that I am able to use it.
@coreybutler This bug has been open for very long. Do you need help on fixing it? Do you need any logs or help on checking something? Let us know.

@coreybutler
Copy link
Owner

@giggio - See the gitter feed, announcement on July 11.

@giggio
Copy link

giggio commented Jul 22, 2015

@coreybutler Got it.

@coreybutler
Copy link
Owner

Not sure why this is still open. It was fixed a long time ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants