Setting up a specific version of NodeJS

Issue:

You require a newer version of NodeJS than the system software baseline or software collections provides.

Solution:

Use ASDF the multiple runtime version manager to maintain preferred software versions.

ASDF Version Manager: https://github.com/asdf-vm/asdf

Instructions

How to install ASDF and update the software:

git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.1
echo -e '\n### ASDF Version Manager Environment Variables' >> ~/.bash_profile
echo -e 'export TMPDIR=$HOME/tmp' >> ~/.bash_profile
echo -e '. $HOME/.asdf/asdf.sh' >> ~/.bash_profile
echo -e '. $HOME/.asdf/completions/asdf.bash' >> ~/.bash_profile
source ~/.bash_profile
asdf update

How to install a specific version of NodeJS and set it as your default account version:

asdf plugin-list-all
asdf plugin-add nodejs
asdf list-all nodejs
asdf install nodejs 16.9.0
asdf global nodejs 16.9.0
node --version
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to terminate a running process

This article describes how to terminate a running or non-responsive process under your shell...

Where can I find a codebase for my MUD or MUSH?

There are several freely distributed and open-source projects available that provide stable...

How to configure the Screen application

How to configure and run the application Screen in your shell account.Note: This environment...

Install Guide for Evennia Codebase

This guide provides instructions for installing the Evennia codebase for first time use with our...

Install Guide for PennMUSH Codebase

Description   This guide provides instructions for installing and configuring the latest...