Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you have multiple versions of Node.js installed, you can select a specific version to use during your session with the following command:

Code Block
languagebash
nodever listalternatives --config node

You should get a prompt like the prompt shown in the following screenshot. Enter the number corresponding to the Node.js version option you would like to use and press Enter

 


Image RemovedImage Added

 


Note

The use of nodever list does require that the PATH environment variable be previously set, as shown in Step 2.previous way of doing this (by using 'nodever list') is deprecated and has been replaced with 'update-alternatives'. While 'nodever' should still work properly if installed, we recommend using the new 'update-alternatives' method instead. There's more information about 'update-alternatives' here: https://ibmsystemsmag.com/Power-Systems/05/2020/update-alternatives

Step 4: Checking the Version of Node.js

...

This should produce output that shows the version currently in use, as shown in the following screenshot:

 

Image Removed


 Image Added


Should you experience any errors when running a particular command, please make sure all of the preceding steps have been completed. Depending on how you start your PASE environment, you may have to set the PATH and select your version each time.