u
This commit is contained in:
		
							parent
							
								
									7f0bf14e13
								
							
						
					
					
						commit
						0dbf5c4661
					
				| @ -17,13 +17,14 @@ fi | |||||||
| 
 | 
 | ||||||
| if [ $nodeVersion == 'nvm' ] | if [ $nodeVersion == 'nvm' ] | ||||||
| then | then | ||||||
|   echo "######## 安装 nvm ############################" |   echo "######## Installing nvm ############################" | ||||||
| else | else | ||||||
|   sudo apt update |   sudo apt update | ||||||
|  |   echo "######## Installing C++ build tools for Linux ########" | ||||||
|   sudo apt install curl gcc g++ make -y |   sudo apt install curl gcc g++ make -y | ||||||
| 
 | 
 | ||||||
|   echo "######## 安装 node v$nodeVersion ##################" |   echo "######## Installing node v$nodeVersion ########" | ||||||
|   echo https://deb.nodesource.com/setup_$nodeVersion.x |   echo From https://deb.nodesource.com/setup_$nodeVersion.x | ||||||
|   curl -sL https://deb.nodesource.com/setup_$nodeVersion.x | sudo bash - && sudo apt install nodejs -y |   curl -sL https://deb.nodesource.com/setup_$nodeVersion.x | sudo bash - && sudo apt install nodejs -y | ||||||
|   echo "######## node v$nodeVersion 安装完毕!##################" |   echo "######## node v$nodeVersion installed completely! ##################" | ||||||
| fi | fi | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user