

You need to manually add these lines to ~/.zshrc and run. You have previously used bash, but you have zsh installed.
#LINUX VERSIONS INSTALL#
Create one of them with touch ~/.bash_profile or touch ~/.bashrc and run the install script again. bashrc files where the command is set up. If you use bash, the previous default shell, your system may not have. Create one with touch ~/.zshrc and run the install script again. zshrc to update, none is installed by default. Since macOS 10.15, the default shell is zsh and nvm will look for. If you get nvm: command not found after running the install script, one of the following might be the reason: You need to manually install the Xcode command line tools before running the install script, otherwise, it'll fail. Since OS X 10.9, /usr/bin/git has been preset by Xcode command line tools, which means we can't properly detect if Git is installed or not.

On Linux, after running the install script, if you get nvm: command not found or see no feedback from your terminal after you type command -v nvm, simply close your current terminal, open a new terminal, and try verifying again.Īlternatively, you can run the following commands for the different shells on the command line: Here's an example one-line command to do that: PROFILE=/dev/null bash -c 'curl -o- | bash' You can instruct the installer to not edit your shell config (for example if you already get completions via a zsh nvm plugin) by setting PROFILE=/dev/null before running the install.sh script.
#LINUX VERSIONS DOWNLOAD#
The installer can use git, curl, or wget to download nvm, whichever is available. Ensure that the NVM_DIR does not contain a trailing slash. You can customize the install source, directory, profile, and version using the NVM_SOURCE, NVM_DIR, PROFILE, and NODE_VERSION variables.Įg: curl. nvm.sh -no-use) to postpone using nvm until you manually use it. You can add -no-use to the end of the above script (. If the environment variable $XDG_CONFIG_HOME is present, it will place the nvm files there. " $NVM_DIR/nvm.sh " # This loads nvm Additional Notes Nvm allows you to quickly install and use different versions of node via the command line.Įxport NVM_DIR= " $([ -z " $/nvm " ) "

Migrating Global Packages While Installing.
