Skip to main content

How to manage your Node.js versions

I tested several tools try to manage node.js versions. Finally, I found that a tool called n (https://www.npmjs.com/package/n) was really useful.


N is a Node.js version manager. It allows you to easily install, update, and uninstall different versions of Node.js. It also allows you to switch between different versions of Node.js with ease. N is a great tool for developers who need to work with multiple versions of Node.js.

Install n.

curl -L https://git.io/n-install | bash  

Those are some useful commands:

n <version>

n latest

n update

n -s latest

n uninstall <version>

n uninstall latest

Comments

Popular posts from this blog

The scorecard for becoming an international person on August 7, 2024, is as follows.

  The scorecard for becoming an international person on August 7, 2024, is as follows. My name is Shane. I am a Full Stack Engineer with over 16 years of experience in the software development industry. I have developed and maintained Java applications using Spring Boot, Mybatis, Vue, and Maven, as well as IntelliJ IDEA, my favorite IDE. I am enthusiastic about technology. I also like Chinese culture, and I would like to upload some videos on Youtube for sharing the good things with you. LinkedIn: https://www.linkedin.com/in/xingjun-chen/ Github: https://github.com/chenxingjun Youtube: https://www.youtube.com/@jinxuezhai Schedule Goals Review Personal development Target: Learning: 1 hour, Practicing: 1 hour, Working: 8 hours Morning: Learning, working Afternoon: Practicing, working Evening: Practicing, reading books Others Finance Relationships Family, friends, others Scorecard Goals Seeking a remote developer job. July ...

The scorecard for becoming an English person on Monday, July 15, 2024, is as follows.

  The scorecard for becoming an English person on Monday, July 15, 2024, is as follows. My name is Shane. I am a Full Stack Engineer with over 16 years of experience in the software development industry. I have developed and maintained Java applications using Spring Boot, Mybatis, Vue, and Maven, as well as IntelliJ IDEA, my favorite IDE. I am enthusiastic about technology. I also like Chinese culture, and I would like to upload some videos on Youtube for sharing the good things with you. LinkedIn: https://www.linkedin.com/in/xingjun-chen/ Github: https://github.com/chenxingjun Youtube: https://www.youtube.com/@jinxuezhai Schedule Goals Review Personal development Target: Learning: 1 hour, Practicing: 1 hour, Working: 8 hours Morning: Learning, working Afternoon: Practicing, working Everning: Practicing, reading books Others Finance Relationships Family, friends, others Scorecard Goals Remote job. July Developer I wou...

The scorecard for becoming an English person on Tuesday, July 2, 2024, is as follows.

  The scorecard for becoming an English person on Tuesday, July 2, 2024, is as follows. My name is Shane. I am a Full Stack Engineer with over 16 years of experience in the software development industry. I have developed and maintained Java applications using Spring Boot, Mybatis, Vue, and Maven, as well as IntelliJ IDEA, my favorite IDE. I am enthusiastic about technology. I also like Chinese culture, and I would like to upload some videos on Youtube for sharing the good things with you. Schedule Goals Review Personal development Weekday Morning: Learning, working Books: 1 hour, technologies: 1 hour Afternoon: Practicing, working Martial arts: 0.5 hour Everning: Practicing, reading books Chinese Xiao flute: 0.5 hour Others Finance Weekend Morning: Learning, working Books: 0.5 hour, technologies: 0 hour Afternoon: Practicing, working Martial arts: 1 hour Everning: Practicing, reading books Chinese Xiao flute: 1 ...