Skip to content

Instantly share code, notes, and snippets.

@Aymkdn
Created January 1, 2022 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aymkdn/c02b50e7ed98e19add3ce5af0a40ee78 to your computer and use it in GitHub Desktop.
Save Aymkdn/c02b50e7ed98e19add3ce5af0a40ee78 to your computer and use it in GitHub Desktop.
Installation for nvm.exe v1.1.9
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