Skip to content

Instantly share code, notes, and snippets.

View Wanchai290's full-sized avatar

Thomas Wanchaï Menier Wanchai290

View GitHub Profile
@jozsefsallai
jozsefsallai / node-for-all-users.md
Last active March 23, 2026 18:06
Easiest method to make node and npm work for all users (non-root too). User-based global packages can also be installed by any user using this method.

Node and npm for all users (in 3 easy steps)

Warning! These instructions are mainly for Ubuntu and Debian. There are probably similar ways of accomplishing the exact same thing in other distros as well.

  1. If you want to install node and npm for all users, even users who don't have admin privileges, first you need to install them as a root (sudo) user.
sudo apt update
sudo apt upgrade
sudo apt install curl build-essential