Installing Node-Red on Ubuntu 18.04 server

After running node-red on Ubuntu lts 16.04 for a while it was time for an update with Ubuntu 18.04 being released. Unfortunately I was not able to get Node-Red installed with the tutorials that could be found for Ubuntu 16.04. The installation always gets stuck in a permission-issue-loop

gyp WARN EACCES user "root" does not have permission to access the dev dir "/home/peter/node-red/node_modules/iltorb/.node-gyp/8.11.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/peter/node-red/node_modules/iltorb/.node-gyp"

After some research and some trial and error I managed to get node-red running on my fresh Ubuntu 18.04 server installation.

Installing node red on Ubuntu 18.04 is as easy as typing the following commands:

curl -sL | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential
sudo npm install -g --unsafe-perm node-red --allow-root


  1. marcus on May 4, 2018 at 7:01 am

    thanks for this short tutorial. helped met to get node red installed

  2. Jay Diggily on September 27, 2018 at 12:35 pm

    Worked a treat. Cheers

  3. […] a node red installation […]

  4. Dado Sutter on October 10, 2018 at 3:10 am

    Thanks a lot!
    Worked perfectly

  5. marc on July 8, 2019 at 9:55 am

    …. merci
    clair et net

  6. baccuss on October 24, 2019 at 7:49 pm

    Wow, so simple. Thanks a million man, much appreciated

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.