We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da6695c commit 1e56eefCopy full SHA for 1e56eef
1 file changed
script/install-deps.sh
@@ -9,6 +9,8 @@ if [ -n "$apt" ]; then
9
apt-get install --no-install-recommends -y \
10
bash \
11
build-essential \
12
+ gnupg \
13
+ ca-certificates \
14
curl \
15
git \
16
g++ \
@@ -23,9 +25,14 @@ if [ -n "$apt" ]; then
23
25
ninja-build \
24
26
automake \
27
autoconf \
- libtool \
- nodejs \
28
- npm
+ 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
36
fi
37
38
# Alpine Linux
0 commit comments