change install nodejs sequence
This commit is contained in:
@@ -92,9 +92,9 @@ ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
|||||||
echo 'Asia/Shanghai' > /etc/timezone
|
echo 'Asia/Shanghai' > /etc/timezone
|
||||||
dpkg-reconfigure -f noninteractive tzdata
|
dpkg-reconfigure -f noninteractive tzdata
|
||||||
# 安装所需的软件包
|
# 安装所需的软件包
|
||||||
sudo apt-get remove --purge libnode72:amd64 -y
|
apt-get install -y python3 python3-pip gcc g++ build-essential gdebi-core curl wget openssh-server vim lrzsz net-tools sudo git nodejs
|
||||||
curl -fsSL https://deb.nodesource.com/setup_${NODEJS_VERSION}.x | sudo -E bash -
|
curl -fsSL https://deb.nodesource.com/setup_${NODEJS_VERSION}.x | sudo -E bash -
|
||||||
apt-get install -y python3 python3-pip gcc g++ build-essential nodejs npm gdebi-core curl wget openssh-server vim lrzsz net-tools sudo git nodejs
|
apt-get install -y nodejs npm
|
||||||
npm install -g configurable-http-proxy yarn --registry=https://registry.npmmirror.com
|
npm install -g configurable-http-proxy yarn --registry=https://registry.npmmirror.com
|
||||||
# 创建新用户
|
# 创建新用户
|
||||||
useradd -m -s /bin/bash ${CREATE_USER}
|
useradd -m -s /bin/bash ${CREATE_USER}
|
||||||
|
|||||||
Reference in New Issue
Block a user