linux-tutorial/codes/deploy/tool/nodejs/install-nodejs.sh

12 lines
235 B
Bash
Raw Normal View History

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