DEV Community

Cover image for The Guide to nvm-manager: Testing Your Node.js Version Management Patience (and Saving It)
Akhilendu Chaturvedi
Akhilendu Chaturvedi

Posted on

The Guide to nvm-manager: Testing Your Node.js Version Management Patience (and Saving It)

Welcome, fellow Noders! If you’ve ever found yourself yelling “It’s a version management miracle!” or “Batch package migration, I’m grateful!” then congratulations—you’re ready for the usage ritual of nvm-manager.

Here’s how to celebrate your sanity with this handy CLI, step-by-step:

1. The Installation Invocation

First, summon the power of nvm-manager from the npm realm with:

npm install -g nvm-manager
Enter fullscreen mode Exit fullscreen mode

(Yes, global installation, because you deserve global peace.)

2. The List-All Blessing

Reveal all the installed Node.js versions and their global npm packages with the sacred command:

nvm-manager list-all
Enter fullscreen mode Exit fullscreen mode

Behold your domain and its package bounty.

3. The Migration Miracle

When you switch projects or Node versions and don’t want to suffer reinstall chaos, perform the migration rite:

nvm-manager migrate  
Enter fullscreen mode Exit fullscreen mode

Replace and with your actual Node versions. Sit back and watch global packages migrate like festive elves.

4. The Phantom Exorcism

Summon the phantom-busting power to cleanse your environment of those ghostly Node versions:

nvm-manager fix-failed
Enter fullscreen mode Exit fullscreen mode

No more haunting your dev lair.

5. The Cleanup Ceremony

Keep only what you truly need by interactively cleaning older Node versions, sparing the latest and greatest LTS:

nvm-manager cleanup
Enter fullscreen mode Exit fullscreen mode

Say farewell to clutter with grace.

Bonus Rituals & Tips:

  • Use nvm-manager --help whenever you need divine guidance.
  • Combine the interactive prompts with your favorite bash scripting for extra automation joy.
  • Remember, nvm-manager is your trusty helper—your classic nvm or nvm-windows must already be installed for this magic to work.

Celebrate your Node.js workflow with fewer headaches and more delightful automation. Happy coding with nvm-manager!

Top comments (0)