I have this:
RUN curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
RUN apt-get install -y nodejs=11
but I get:
E: Version '11' for 'nodejs' was not found
I also tried:
RUN apt-get install -y nodejs=11*
does anyone know how I can find out which versions are available? The problem is that node version 12 is already installed on this machine and I want to downgrade the Node.js version here.
Because 12 is already installed, I had to do this:
just drop that
=11
part. Like this:and
The reason is that first
curl
command installs the repository which replacesapt
's pointer for nodejs - so no need to specify the version.try like this:
the only problem that I see is the "nodejs=11" in the apt-get, that should do it.
You can find the versions here: https://github.com/nodesource/distributions/blob/master/README.md
The stable version is currently the 10.x