Skip to content

Commit 424b246

Browse files
authored
Update gcp.md
1 parent 88cfa55 commit 424b246

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

docs/getting-started/gcp.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,35 @@ The next task is to log into the instance then install node.js and Node-RED.
6060
Log into your instance using the authentication details you specified in the
6161
previous stage.
6262

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
6468

6569
sudo add-apt-repository -y -r ppa:chris-lea/node.js
6670
sudo rm -f /etc/apt/sources.list.d/chris-lea-node_js-*.list
6771
sudo rm -f /etc/apt/sources.list.d/chris-lea-node_js-*.list.save
6872

73+
Add the NodeSource package signing key
74+
6975
curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
7076

77+
Add the desired NodeSource repository
78+
79+
VERSION=node_10.x
7180
DISTRO="$(lsb_release -s -c)"
7281
echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list
7382
echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list
7483

84+
Update package lists and install Node.js
85+
7586
sudo apt-get update
7687
sudo apt-get install nodejs
7788

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
8092
sudo npm install -g node-red
8193

8294

0 commit comments

Comments
 (0)