Skip to content
Abraham Nnaji
  • Home
  • About
  • Writing
  • Work
  • Resume
  • Contact
← All writing

note · Ubuntu dev setup, 2019, part 5

Installing Node and npm on Ubuntu without sudo errors

14 Feb 2019updated 28 Nov 20261 min · 62 wordslinuxubuntunode

A flat diagram showing a blocked path above a padlocked SYSTEM folder on the left and three package blocks flowing along a curved olive arrow into a neon green-yellow HOME folder on the right.

Ubuntu dev setup, 2019 · Part 5 of 6

  1. Installing Gradle on Ubuntu
  2. Fixing a broken JAVA_HOME path for Gradle on Ubuntu
  3. Installing Android Studio on Ubuntu
  4. Fixing /dev/kvm permission denied for Android emulators on Ubuntu
  5. Installing Node and npm on Ubuntu without sudo errors
  6. Installing Docker on Ubuntu
← PreviousInstalling Docker on UbuntuNext →Installing Gradle on Ubuntu

Recruiting, a question about a post, or a soccer take. Email works best.

nnaji.abraham+web@gmail.com
  • LinkedIn
  • GitHub
  • Twitter/X
  • Medium
  • Spotify
  • YouTube
  • RSS

status: building engineering platforms

© 2026 Abraham Nnaji · BC, Canada · no tracking
Note

2026 note

The first link below targets Ubuntu 16.04 and 18.04, both end of life. The nvm route still works. Current install steps are in the nvm README and the npm docs on resolving EACCES errors.

Install Node and Npm for Ubuntu:

  • Install the Latest Node.js and NPM Packages on Ubuntu 16.04 / 18.04 LTS
  • npm install -g less does not work

https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

creationix/nvm

Code

bash
nvm install <version-of-node>
nvm alias default node # to use the latest version available