Install / downgrade specific version of Node.js
10,049
Because 12 is already installed, I had to do this:
# apt-get remove -y nodejs # key part
# curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
# apt-get install -y nodejs
Related videos on Youtube
![Alexander Mills](https://i.stack.imgur.com/5Oh7r.jpg?s=256&g=1)
Author by
Alexander Mills
Updated on September 18, 2022Comments
-
Alexander Mills almost 2 years
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.
-
Alexander Mills almost 5 yearssee my answer, I had to remove the previous version
-
Alexander Mills almost 5 yearssee my answer, I had to remove the previous version
-
Raphael almost 5 yearsOh sorry, glad you managed to solve it!
-
Shachar Har-Shuv over 4 yearsThis does not answer the question, as a specific version was requested.