Code Monkey home page Code Monkey logo

Comments (18)

g0t4 avatar g0t4 commented on May 22, 2024 2

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

from nvm-windows.

fpatros avatar fpatros commented on May 22, 2024

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!

from nvm-windows.

coreybutler avatar coreybutler commented on May 22, 2024

@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.

from nvm-windows.

fpatros avatar fpatros commented on May 22, 2024

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.

from nvm-windows.

romualdr avatar romualdr commented on May 22, 2024

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

from nvm-windows.

romualdr avatar romualdr commented on May 22, 2024

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

from nvm-windows.

coreybutler avatar coreybutler commented on May 22, 2024

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

from nvm-windows.

Adam13531 avatar Adam13531 commented on May 22, 2024

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.

from nvm-windows.

coreybutler avatar coreybutler commented on May 22, 2024

@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.

from nvm-windows.

JeffHerb avatar JeffHerb commented on May 22, 2024

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

from nvm-windows.

coreybutler avatar coreybutler commented on May 22, 2024

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.

from nvm-windows.

JeffHerb avatar JeffHerb commented on May 22, 2024

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)
.

from nvm-windows.

coreybutler avatar coreybutler commented on May 22, 2024

@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.

from nvm-windows.

romualdr avatar romualdr commented on May 22, 2024

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" ?

from nvm-windows.

giggio avatar giggio commented on May 22, 2024

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.

from nvm-windows.

coreybutler avatar coreybutler commented on May 22, 2024

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

from nvm-windows.

giggio avatar giggio commented on May 22, 2024

@coreybutler Got it.

from nvm-windows.

coreybutler avatar coreybutler commented on May 22, 2024

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

from nvm-windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.