NVM for Windows not working?

I just installed NVM for Windows , but it doesn't seem to work:

nvm from command line

Any ideas?

+8
source share
10 answers

Most likely, it happens that the system is %PATH%updated outside the command line instance. Just opening a new command line will bring up these new external changes.

+6
source

First check your actual directory "C: \ Program Files \ nodejs". Most of us already have the "nodejs" directory from the previous installation before we decided (or were told to us) to install nvm.

, "C:\Program Files\nodejs" , nvm , (. C:\Users\xxx\AppData\Roaming\nvm). , nvm , "nvm use...".

, , , " nvm..." .

  1. // "C:\Program Files\nodejs". , "nodejs".
  2. nvm (C:\Users\xxx\AppData\Roaming\nvm), nvm.
  3. nvm (https://github.com/coreybutler/nvm-windows/releases)
  4. CMD ( ) nvm, nvm-setup.exe, CMD.
  5. "nvm install 7.2.1" , . , , .
  6. "nvm use...", "nvm list" ..

, , ...

+10

node nvm. node . . nvm arch,

    C:\WINDOWS\system32> nvm arch
    System Default: 64-bit.
    Currently Configured: -bit.

node

    C:\WINDOWS\system32> nvm use 7.4.0 x64
    Now using node v7.4.0 (64-bit)
    C:\WINDOWS\system32> nvm arch
    System Default: 64-bit.
    Currently Configured: 64-bit.
    C:\WINDOWS\system32> nvm list

    * 7.4.0 (Currently using 64-bit executable)
      4.5.0
    C:\WINDOWS\system32> node -v
    v7.4.0
+8

Windows 10, @pleverett https://github.com/coreybutler/nvm-windows/issues/191

:

C:\WINDOWS\system32> nvm arch
System Default: 64-bit.
Currently Configured: -bit.

C:\WINDOWS\system32> nvm list
8.9.4
6.13.0

: node , , node, , . Windows 7 10, 64-, "C:\Program Files\nodejs".

"nodejs" , "nvm use" node nvm.

, "nodejs".

+3
  1. , nodejs.
  2. NVM
  3. 'nvm on'
  4. 'nvm list'
  5. ' --version'
+1

nvm list

image

v8.9.4 nvm.

image

:

nvm list

image

v8.9.4 .

0

nvm-windows, . , , settings.txt. , nvm-win, . , 1 2 , . , .

  1. , nvm nvm.exe. . C:\NVM
  2. NVM_HOME .
  3. 1 2.

2

, , Windows, , , C:\Users\adamm> nvm list

10.15.1

* 6.4.0 ( 64- ) , , node -v, , , 6.4.0

0

nvm Windows, nvm ?

nodejs , NVM_SYMLINK, nvm windows, C:\Program Files\nodejs ( )

?

nvm on, nvm use x.x.x, - .

?

  1. nodejs / C:\Program Files\nodejs,
  2. ( ), NVM_SYMLINK nvm use x.x.x
  3. , nvm Windows ( )

. , NVM_SYMLINK C:\Users\Charlie\AppData\Roaming\nvm\vx.x.x, .

0

, . NVM , .

% NVM_HOME% % NVM_SYMLINK% , node --version -.

, , :

  1. NVM ( )
  2. Manually added% NVM_HOME% and% NVM_SYMLINK% to the path to the user account (if you check the path to the administrator account, you will see that these 2 were added there during the installation of NVM)
  3. nvm install latest
  4. nvm on
  5. nvm use x.x.x
  6. Restart your computer to let your IDE recognize the changes
  7. $ Profit $
0
source

All Articles