linux-tutorial/codes/deploy/tool/nodejs/install-nodejs.sh
2018-02-01 16:34:02 +08:00

12 lines
245 B
Bash

#!/usr/bin/env bash
echo -e "\n>>>>>>>>> install Node.js"
# 安装 nvm
rm -rf /home/admin/.nvm
git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm
source ~/.nvm/nvm.sh
# 使用 nvm 安装 Node 指定版本
nvm install 0.10.48