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 33b9986 commit ad0a739Copy full SHA for ad0a739
src/ci/docker/scripts/nodejs.sh
@@ -3,8 +3,13 @@
3
set -ex
4
5
NODEJS_VERSION=v20.12.2
6
+YARN_VERSION=1.22.22
7
INSTALL_PATH=${1:-/node}
8
9
url="https://nodejs.org/dist/${NODEJS_VERSION}/node-${NODEJS_VERSION}-linux-x64.tar.xz"
10
curl -sL "$url" | tar -xJ
11
mv node-${NODEJS_VERSION}-linux-x64 "${INSTALL_PATH}"
12
+
13
+# now, install yarn.
14
+# we call npm through the node binary, because otherwise npm will expect node to be in the PATH
15
+"${INSTALL_PATH}/bin/node" "${INSTALL_PATH}/bin/npm" install --global yarn@${YARN_VERSION}
0 commit comments