leokhoa / laragon

Laragon is a portable, isolated, fast & powerful universal development environment for PHP, Node.js, Python, Java, Go, Ruby. It is fast, lightweight, easy-to-use and easy-to-extend.
https://laragon.org
4.22k stars 355 forks source link

[Feature request] Node Version Manager #441

Open ghost opened 1 year ago

ghost commented 1 year ago

Hi,

Currently if you want to add another version of Node:

Which is quite simple to do, but maybe for a feature release it would be nice to add something like NVM (Node Version Manager) ?

nvm allows you to quickly install and use different versions of node via the command line.

This allows you to do commands like:

You can install as many as you want and then simply use the nvm use command to switch to the version you want. This way there could potentially be a new button in the menu like:

This list could obviously be fetched from https://nodejs.org/en/download/releases/

Then the Menu > NodeJS > Version [current version] > Select version. option could simple fetch all your installed versions by using nvm list and by selecting one use nvm use [version].

Now nobody is downloading and installing tons of NodeJS versions every day so doing it manually isn't the biggest deal, but I feel like it might be a nice small addition.

alphaleadership commented 2 months ago

https://github.com/jasongin/nvs