Skip to content

Commit cfa90e8

Browse files
committed
upgrade nodejs
1 parent 45579dd commit cfa90e8

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

install-pkg.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,25 @@ wget -q https://github.com/lework/skopeo-binary/releases/download/${SKOPEO_VERSI
7070
mv skopeo-linux-amd64 /usr/local/bin/skopeo && chmod a+x /usr/local/bin/skopeo && skopeo --version
7171

7272
# Install NodeJS
73-
NODEJS_VERSION=v20.17.0
73+
NODEJS_VERSION=v24.13.0
7474
wget -q https://nodejs.org/dist/${NODEJS_VERSION}/node-${NODEJS_VERSION}-linux-x64.tar.xz
7575
tar -xf node-${NODEJS_VERSION}-linux-x64.tar.xz
7676
mv node-${NODEJS_VERSION}-linux-x64 /opt/node
7777
ln -sf /opt/node/bin/node /usr/local/bin/
7878
ln -sf /opt/node/bin/npm /usr/local/bin/
79+
ln -sf /opt/node/bin/npx /usr/local/bin/
80+
7981
# 全局配置
8082
echo "prefix=/root/.npm-packages" > /opt/node/lib/node_modules/npm/npmrc
8183

8284
# https://github.com/restic/restic
83-
RESTIC_VERSION=0.16.0
85+
RESTIC_VERSION=0.18.1
8486
wget -q https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_linux_amd64.bz2
8587
bunzip2 restic_${RESTIC_VERSION}_linux_amd64.bz2
8688
chmod a+x restic_${RESTIC_VERSION}_linux_amd64 && mv restic_${RESTIC_VERSION}_linux_amd64 /usr/local/bin/restic
8789

8890
# https://github.com/rclone/rclone
89-
RCLONE_VERSION=v1.63.1
91+
RCLONE_VERSION=v1.72.1
9092
wget -q https://github.com/rclone/rclone/releases/download/${RCLONE_VERSION}/rclone-${RCLONE_VERSION}-linux-amd64.deb
9193
dpkg -i rclone-${RCLONE_VERSION}-linux-amd64.deb
9294

0 commit comments

Comments
 (0)