|
@@ -356,6 +356,7 @@ function init:nodejs() {
|
|
command::exec "${host}" "
|
|
command::exec "${host}" "
|
|
curl -fsSL https://rpm.nodesource.com/setup_16.x | sudo bash -
|
|
curl -fsSL https://rpm.nodesource.com/setup_16.x | sudo bash -
|
|
yum -y install nodejs
|
|
yum -y install nodejs
|
|
|
|
+ yum -y install npm
|
|
npm install --global yarn
|
|
npm install --global yarn
|
|
# 配置npm源
|
|
# 配置npm源
|
|
npm config set registry https://registry.npm.taobao.org
|
|
npm config set registry https://registry.npm.taobao.org
|