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 指定版本
|
2018-02-13 16:20:33 +08:00
|
|
|
nvm install 8.9.4
|