Update nodejs/yarn install methods
Merge request reports
Activity
This does not work on debian 12, the
node-corepack
package cannot be found:13:49 $ docker run -it debian:12 /bin/bash root@b9fb7e7dc5a2:/# apt update && apt install -y curl root@b9fb7e7dc5a2:/# curl -fsSL https://deb.nodesource.com/setup_18.x | bash - root@b9fb7e7dc5a2:/# apt install -y nodejs root@b9fb7e7dc5a2:/# apt install -y node-corepack Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package node-corepack
It also does not work on latest ubuntu.
node-corepack
is only available on debian unstable and will be available in debian 13 (no release date yet).We try to avoid installing node related stuffs from official debian packages as they are usually outdated.
thanks for testing @anlambert !
corepack
is actually bundled with the nodejs versions provided by nodesource and you're right, I needed node-corepack because I'm on debian testingthe mr has been updated
Jenkins job DDOC/builds #725 succeeded .
See Console Output and Coverage Report for more details.59 59 60 60 .. code-block:: console 61 61 62 sudo wget https://deb.nodesource.com/gpgkey/nodesource.gpg.key -O /etc/apt/trusted.gpg.d/nodesource.asc 63 echo "deb https://deb.nodesource.com/node_18.x $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list 64 sudo apt update 65 sudo apt install nodejs 62 curl -fsSL https://deb.nodesource.com/setup_18.x | sudo bash - 63 sudo apt-get install -y nodejs changed this line in version 3 of the diff
Jenkins job DDOC/builds #726 succeeded .
See Console Output and Coverage Report for more details.Jenkins job DDOC/builds #727 succeeded .
See Console Output and Coverage Report for more details.Thank you for the review @anlambert, is it ok if I merge + squash this MR ?