Created
January 1, 2022 20:06
-
-
Save Aymkdn/c02b50e7ed98e19add3ce5af0a40ee78 to your computer and use it in GitHub Desktop.
Installation for nvm.exe v1.1.9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set /P NVM_PATH="Enter the absolute path where the zip file is extracted/copied to: " | |
setx NVM_HOME "%NVM_PATH%" | |
set NVM_SYMLINK=C:\Program Files\nodejs | |
setx NVM_SYMLINK "%NVM_SYMLINK%" | |
setx PATH "%PATH%;%NVM_PATH%;%NVM_SYMLINK%" | |
if exist "%SYSTEMDRIVE%\Program Files (x86)\" ( | |
set SYS_ARCH=64 | |
) else ( | |
set SYS_ARCH=32 | |
) | |
(echo root: %NVM_PATH% && echo path: %NVM_SYMLINK% && echo arch: %SYS_ARCH% && echo proxy: none) > %NVM_PATH%\settings.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment