Skip to content

Commit 3e23e14

Browse files
Update node installation on debian (#41276)
Co-authored-by: fortmarek <[email protected]>
1 parent 945c429 commit 3e23e14

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.circleci/config.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,15 @@ jobs:
11491149
command: |
11501150
apt update
11511151
apt install -y wget git curl
1152-
curl -sL https://deb.nodesource.com/setup_16.x | bash -
1152+
1153+
apt-get update
1154+
apt-get install -y ca-certificates curl gnupg
1155+
mkdir -p /etc/apt/keyrings
1156+
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
1157+
NODE_MAJOR=16
1158+
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
1159+
apt-get update
1160+
11531161
apt install -y nodejs
11541162
npm install --global yarn
11551163
- checkout

0 commit comments

Comments
 (0)