4

How to downgrade nodejs version on termux?, my termux already isntalled with 18.3.0 nodejs version and i need to use the older version.

Xnooxer
  • 41
  • 1
  • 2

1 Answers1

-3

You can download Node Version Manager from here. It lets you choose to install the version you want, anytime you want.

From documentation:

To install:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

Once it is installed:

nvm use 16

You can choose 18,16,14 or whatever you want.

Stefano Leone
  • 635
  • 5
  • 14
  • 2
    You obviously never tested your solution, because there is an incompatibility between Termux and NVM, because both reserve the `PREFIX` variable with different values. https://github.com/nvm-sh/nvm/issues/1645 – Martin Braun Jan 14 '23 at 22:42