File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ if [ -n "$apt" ]; then
99 apt-get install --no-install-recommends -y \
1010 bash \
1111 build-essential \
12+ gnupg \
13+ ca-certificates \
1214 curl \
1315 git \
1416 g++ \
@@ -23,9 +25,14 @@ if [ -n "$apt" ]; then
2325 ninja-build \
2426 automake \
2527 autoconf \
26- libtool \
27- nodejs \
28- npm
28+ libtool
29+
30+ # install latest nodejs
31+ mkdir -p /etc/apt/keyrings
32+ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
33+ echo " deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
34+ apt-get update -qq
35+ apt-get install -y --no-install-recommends nodejs
2936fi
3037
3138# Alpine Linux
You can’t perform that action at this time.
0 commit comments