Skip to content

Instantly share code, notes, and snippets.

View nina-mir's full-sized avatar
:dependabot:
Passed JSNAD!! 😊

Nina Mir nina-mir

:dependabot:
Passed JSNAD!! 😊
  • San Francisco, CA
  • 17:56 (UTC -12:00)
View GitHub Profile

How Not to Install Node.js

Note

the followin content is from Linuxfoundation.org

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.

Another significant issue with installing Node.js via an OS package manager is that installing global modules with Node's module installer (npm) tends to require the use of sudo (a command which grants root privileges) on non-Windows systems. This is not an ideal setup for a developer machine and granting root privileges to the install process of third-party libraries is not a good security practice.

Node can also be installed