change install nodejs sequence

This commit is contained in:
2024-05-27 14:03:16 +08:00
parent c8389c4855
commit 7ecc5f2671

View File

@@ -92,9 +92,9 @@ ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
echo 'Asia/Shanghai' > /etc/timezone
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 -
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
# 创建新用户
useradd -m -s /bin/bash ${CREATE_USER}