
To remove Node.js 10.12.0, type: nvm uninstall 10.12.0 Conclusion Just make sure the version you are removing is not currently active version. You can remove any unused version by running the following command. When you have multiple node.js version installed, You can choose specific version to run any script: nvm exec 12.19.0 server.js Step 4 – Uninstall Specific Node Version with NVM To find the default Node version set for the current user, type: nvm run default -version The selected version will be the currently active version for the current shell only. You can also select a different version for the current session. With this command, you can find the available node.js version for the installation. You can use the following command to list installed versions of node for the current user. You can also use lts/dubnium, lts/carbon etc. nvm install node # install latest stable version nvm install lts/* # install latest lts version

It also provided alias for the latest stable node version, LTS version and other previous LTS version. Now you can install any node version by typing: nvm install 12.19.0 First of all, use the following command to find all available versions of node.js for installation: nvm ls-remoteĪbove command will show you a list of available node versions. NVM allowed users to install multiple node.js versions for each user account. source ~/.bashrcĪt this stage, you have successfully install NVM on your system. Logout and login with your user account to load nvm environment or use the following command to load environment without login again. NVM keeps all the binaries and configuration files under this. nvm directory under the logged in user home directory. Use the following commands to install NVM on Amazon Linux system: sudo yum install curl -y curl | bash

Node Version Manager official team provides a shell script for the installation of NVM command line utility. Login to your Amazon Linux system via SSH. PrerequisitesĪ running Amazon Linux system with shell access. Also helped you to basic uses of NVM for Amazon Linux systems. > Processing Dependency: libm.so.6(GLIBC_2.27)(64bit) for package: 2:nodejs-18.3.0-1nodesource.x86_64Įrror: Package: 2:nodejs-18.3.0-1nodesource.x86_64 (nodesource)Įrror: Package: 2:nodejs-18.3.0-1nodesource.This tutorial will help you to install NVM on your Amazon Linux machine. > Package nodejs.x86_64 2:18.3.0-1nodesource will be installed Loaded plugins: extras_suggestions, langpacks, priorities, update-motd But after several tries I can't able to install node and got the error shared below. I purchased Amazon Linux 2 machine using AWS LightSail and tried to install node on that machine.
