File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -60,23 +60,35 @@ The next task is to log into the instance then install node.js and Node-RED.
60
60
Log into your instance using the authentication details you specified in the
61
61
previous stage.
62
62
63
- Once logged in you need to install node.js and Node-RED
63
+ Once logged in you need to install node.js and Node-RED using manual install.
64
+
65
+ [ NodeSource Node.js Binary Distributions] ( https://github.com/nodesource/distributions#manual-installation )
66
+
67
+ Remove the old PPA if it exists
64
68
65
69
sudo add-apt-repository -y -r ppa:chris-lea/node.js
66
70
sudo rm -f /etc/apt/sources.list.d/chris-lea-node_js-*.list
67
71
sudo rm -f /etc/apt/sources.list.d/chris-lea-node_js-*.list.save
68
72
73
+ Add the NodeSource package signing key
74
+
69
75
curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
70
76
77
+ Add the desired NodeSource repository
78
+
79
+ VERSION=node_10.x
71
80
DISTRO="$(lsb_release -s -c)"
72
81
echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list
73
82
echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list
74
83
84
+ Update package lists and install Node.js
85
+
75
86
sudo apt-get update
76
87
sudo apt-get install nodejs
77
88
78
- curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
79
- sudo apt-get install -y nodejs build-essential
89
+ Install Node-RED
90
+
91
+ sudo apt-get install build-essential
80
92
sudo npm install -g node-red
81
93
82
94
You can’t perform that action at this time.
0 commit comments