How to set default node version with NVM

How to set default node version with NVM

Date: 29-05-2021

Step 1: Login to the server via ssh.

Step 2: Install the required version by using below nvm command.
# nvm install v12.19.1
Note: 12.20.1 – This is version.

Step 3: Set 12.19.1 (or another version) as default.
# nvm alias default v12.19.1

Step 4: Restart the server and verify the default node version by using below command
# node -v
or
# node –version

Thank you!

admin

Our team has expertise across software and web development, WordPress, e-commerce, mobile applications, UI/UX, cloud and infrastructure, DevOps, CI/CD, API integration, security, testing, automation, and technical support. The team also works with AI-based software solutions, LLMs, AI workflows, AI agents, and intelligent application development to help businesses automate processes and build smarter digital solutions. We focus on developing, deploying, maintaining, and optimising secure, scalable, and reliable technology solutions while helping businesses adopt modern technologies and drive digital transformation.

Leave a Reply

Scroll to Top