📜  在 linux 实例上安装节点 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:39.106000             🧑  作者: Mango

代码示例1
#Install node version manager (nvm) by typing the following at the command line.

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash

#Activate nvm by typing the following at the command line.

. ~/.nvm/nvm.sh

#Use nvm to install the latest version of Node.js by typing the following at the command line.
nvm install node