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

12 lines
235 B
Bash

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