mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Update README.markdown
Specifies the lines that will be added by the installation script.
This commit is contained in:
		| @@ -48,6 +48,11 @@ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh | | ||||
|  | ||||
| <sub>The script clones the nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`).</sub> | ||||
|  | ||||
| ```sh | ||||
| export NVM_DIR="$HOME/.nvm" | ||||
| [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | ||||
| ``` | ||||
|  | ||||
| You can customize the install source, directory, profile, and version using the `NVM_SOURCE`, `NVM_DIR`, `PROFILE`, and `NODE_VERSION` variables. | ||||
| Eg: `curl ... | NVM_DIR=/usr/local/nvm bash` for a global install. | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user