mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 18:25:52 +08:00 
			
		
		
		
	Update readme and comment
This commit is contained in:
		| @@ -19,13 +19,13 @@ Often I also put in a line to use a specific version of node. | |||||||
|      |      | ||||||
| ## Usage | ## Usage | ||||||
|  |  | ||||||
| To download, compile, and install the v0.2.5 release of node, do this: | To download, compile, and install the v0.4.1 release of node, do this: | ||||||
|  |  | ||||||
|     nvm install v0.2.5 |     nvm install v0.4.1 | ||||||
|  |  | ||||||
| And then in any new shell just use the installed version: | And then in any new shell just use the installed version: | ||||||
|  |  | ||||||
|     nvm use v0.2.5 |     nvm use v0.4.1 | ||||||
|  |  | ||||||
| If you want to see what versions are available: | If you want to see what versions are available: | ||||||
|  |  | ||||||
| @@ -37,5 +37,5 @@ To restore your PATH, you can deactivate it. | |||||||
|  |  | ||||||
| To set a default Node version to be used in any new shell, use the alias 'default': | To set a default Node version to be used in any new shell, use the alias 'default': | ||||||
|  |  | ||||||
|     nvm alias default v0.2.5 |     nvm alias default v0.4.1 | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -5,7 +5,7 @@ | |||||||
| # Implemented by Tim Caswell <tim@creationix.com> | # Implemented by Tim Caswell <tim@creationix.com> | ||||||
| # with much bash help from Matthew Ranney | # with much bash help from Matthew Ranney | ||||||
|  |  | ||||||
| # Auto detect the NVM_DIR using magic bash 3.x stuff | # Auto detect the NVM_DIR | ||||||
| if [ ! -d "$NVM_DIR" ]; then | if [ ! -d "$NVM_DIR" ]; then | ||||||
|     export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}); pwd) |     export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}); pwd) | ||||||
| fi | fi | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user