Thursday, November 26, 2020

Install NodeJS using Version Manager

Often Node.js can be installed with a particular Operating System's official or unofficial package manager. For instance apt-get on Debian/Ubuntu, Brew on macOs, Chocolatey on Windows. It is strongly recommended against using this approach to install Node. Package managers tend to lag behind the faster Node.js release cycle. Additionally, the placement of binary and config files and folders isn't standardized across OS package managers and can cause compatibility issues.

The popular version manager are nvm (macOS and Linux), nvm-windows (windows) and nvs (macOS, Linux and windows).

    https://github.com/nvm-sh/nvm

    https://github.com/coreybutler/nvm-windows

    https://github.com/jasongin/nvs

I prefer nvs because of cross-platform. I am a window user and my server is Ubuntu.

Comparing nvm and nvs, I have feedback from a developer saying that nvm is slower.