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

1
2
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:

1
2
3
4
curl -sL https://deb.nodesource.com/setup_8.x | 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

4 thoughts on “Installing Node-Red on Ubuntu 18.04 server

  1. marcus says:

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

  2. Jay Diggily says:

    Worked a treat. Cheers

  3. Dado Sutter says:

    Thanks a lot!
    Worked perfectly

Leave a Reply

Your email address will not be published. Required fields are marked *

Name *
Email *
Website

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