DEV Community

Discussion on: Switching between multiple Node versions with Node Version Manager

Collapse
 
pavelloz profile image
Paweł Kowalski

If you do a lot of switching (ie. using nvm use on every shell creation) i highly recommend fnm, which is A LOT faster.

Link: github.com/Schniz/fnm/

Collapse
 
kevinrambaud profile image
Kevin Rambaud

I use it too for the same reasons! I highly recommend it.

Collapse
 
wnbsmart profile image
Maroje Macola

Hi Pawel!

Thanks for your tool recommendation.
One question, what actullay makes fnm faster in comparison to nvm?

I see many similarities in installation process & available commands, so switching from nvm to fnm should also be easy, if someone decides to do so.

Collapse
 
pavelloz profile image
Paweł Kowalski • Edited

Im not really sure why its faster. I assume its just doing much less things underneath.

I found it when i added "nvm use" to my zsh_profile and every terminal in VSCode was running it... and it took over 1 second to open a terminal. I dont remember the exact numbers, but it was over 10x faster when doing that one thing. :)

Of course, keep in mind that i measured on my old computer, maybe on yours its not a factor at all :)