mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Add nvmrc note to nvm which blurb.
				
					
				
			This commit is contained in:
		| @@ -43,7 +43,7 @@ Often I also put in a line to use a specific version of node. | |||||||
| ## Usage | ## Usage | ||||||
|  |  | ||||||
| You can create an `.nvmrc` file containing version number in the project root directory (or any parent directory). | You can create an `.nvmrc` file containing version number in the project root directory (or any parent directory). | ||||||
| `nvm use`, `nvm install`, `nvm exec`, and `nvm run` will all respect an `.nvmrc` file. | `nvm use`, `nvm install`, `nvm exec`, `nvm run`, and `nvm which` will all respect an `.nvmrc` file when a version is not supplied. | ||||||
|  |  | ||||||
| To download, compile, and install the latest v0.10.x release of node, do this: | To download, compile, and install the latest v0.10.x release of node, do this: | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -547,7 +547,7 @@ nvm() { | |||||||
|       echo "  nvm unalias <name>                    Deletes the alias named <name>" |       echo "  nvm unalias <name>                    Deletes the alias named <name>" | ||||||
|       echo "  nvm reinstall-packages <version>      Reinstall global \`npm\` packages contained in <version> to current version" |       echo "  nvm reinstall-packages <version>      Reinstall global \`npm\` packages contained in <version> to current version" | ||||||
|       echo "  nvm unload                            Unload \`nvm\` from shell" |       echo "  nvm unload                            Unload \`nvm\` from shell" | ||||||
|       echo "  nvm which [<version>]                 Display path to installed node version" |       echo "  nvm which [<version>]                 Display path to installed node version. Uses .nvmrc if available" | ||||||
|       echo |       echo | ||||||
|       echo "Example:" |       echo "Example:" | ||||||
|       echo "  nvm install v0.10.32                  Install a specific version number" |       echo "  nvm install v0.10.32                  Install a specific version number" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user