Easy install and run any nodejs version on replit.com
-
create new repl and select import from github.
-
enter url https://github.com/cirebon-dev/replit_nodeinstaller
-
change preferred nodejs version to install on
composer.json. -
open shell then type
composer update.
Now you can run nodejs and npm by typing ./vendor/bin/node and ./vendor/bin/npm also you can add to PATH, from secrets with adding key PATH and value ~/replname/vendor/bin:$PATH (make sure to replace replname with your repl name).