mirror of https://github.com/tteck/Proxmox.git
				
				
				
			change Node.js install
This commit is contained in:
		
							parent
							
								
									9fcca6fc36
								
							
						
					
					
						commit
						3ab7d4a5f3
					
				| 
						 | 
					@ -34,7 +34,11 @@ msg_info "Installing Node.js"
 | 
				
			||||||
#$STD su immich -c "nvm install 20"
 | 
					#$STD su immich -c "nvm install 20"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$STD bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh)
 | 
					$STD bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh)
 | 
				
			||||||
. ~/.bashrc
 | 
					#. ~/.bashrc  # crashes with: /root/.bashrc: line 6: PS1: unbound variable
 | 
				
			||||||
 | 
					export NVM_DIR="$HOME/.nvm"
 | 
				
			||||||
 | 
					[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
 | 
				
			||||||
 | 
					[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$STD nvm install 20
 | 
					$STD nvm install 20
 | 
				
			||||||
$STD export NODE_VERSION="$( node -v )"
 | 
					$STD export NODE_VERSION="$( node -v )"
 | 
				
			||||||
ln -sf /root/.nvm/versions/node/$NODE_VERSION/bin/node /usr/bin/node
 | 
					ln -sf /root/.nvm/versions/node/$NODE_VERSION/bin/node /usr/bin/node
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue