mirror of
https://github.com/dunwu/linux-tutorial.git
synced 2024-04-15 19:55:24 +08:00
12 lines
235 B
Bash
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
|