Skip to content

Commit 188333b

Browse files
author
Dave Conway-Jones
committed
doc updates to try to handle upgrades of nodes
1 parent 1abf054 commit 188333b

File tree

4 files changed

+36
-13
lines changed

4 files changed

+36
-13
lines changed

docs/getting-started/running.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ command:
1111
Welcome to Node-RED
1212
===================
1313

14-
25 Feb 22:51:09 - [info] Node-RED version: v0.13.1
15-
25 Feb 22:51:09 - [info] Node.js version: v4.2.6
14+
25 Feb 22:51:09 - [info] Node-RED version: v0.14.6
15+
25 Feb 22:51:09 - [info] Node.js version: v4.6.0
1616
25 Feb 22:51:09 - [info] Loading palette nodes
1717
25 Feb 22:51:10 - [warn] ------------------------------------------
18-
25 Feb 22:51:10 - [warn] Failed to register 1 node types
19-
25 Feb 22:51:10 - [warn] Run with -v for details
18+
25 Feb 22:51:10 - [warn] [rpi-gpio] Info : Ignoring Raspberry Pi specific node
2019
25 Feb 22:51:10 - [warn] ------------------------------------------
20+
25 Feb 22:51:10 - [info] Settings file : /home/nol/.node-red/settings.js
2121
25 Feb 22:51:10 - [info] User Directory : /home/nol/.node-red
2222
25 Feb 22:51:10 - [info] Server now running at http://127.0.0.1:1880/
2323
25 Feb 22:51:10 - [info] Creating new flows file : flows_noltop.json

docs/getting-started/upgrading.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ To check for outdated nodes that are installed in the user directory you can:
2525

2626
This will print a list of nodes that can be updated. To update them you can then run:
2727

28-
npm update foo // to update a node called foo
29-
npm update // to update all nodes
28+
npm update # to update all nodes, or
29+
npm update foo # to only update a node called foo
3030

3131
You will then need to stop and restart Node-RED.
3232

3333
## Upgrading node.js
3434

35-
If you upgrade node.js, for example from v0.10.x to v4.6.x, it is better to
36-
re-install Node-RED as follows:
35+
If you upgrade node.js, for example from v0.10.x to v4.6.x, it is better to stop
36+
Node-RED, and then re-install as follows:
3737

3838
sudo npm cache clean
3939
sudo npm install -g --unsafe-perm node-red
@@ -44,7 +44,7 @@ installed them in the recommended `~/.node-red` directory, you can do this by:
4444
cd ~/.node-red
4545
npm rebuild
4646

47-
You will then need to stop and restart Node-RED.
47+
You will then need to restart Node-RED.
4848

4949
----
5050

docs/hardware/arduino.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ There are several ways to interact with an Arduino using Node-RED. They
77
all assume the Arduino is connected to the host computer via a USB serial
88
connection.
99

10+
*Note:* you can't use both the Arduino IDE and the Arduino nodes at the same time
11+
as they will conflict. You will need to stop Node-RED running if you wish
12+
re-program the Arduino from the IDE.
13+
1014
***
1115

1216
### Serial
@@ -46,7 +50,7 @@ You then need to install the Node-RED Arduino nodes into the palette.
4650

4751
Change directory to your Node-RED user directory, this is normally `~/.node-red`
4852

49-
cd .node-red
53+
cd ~/.node-red
5054

5155
Then install the Arduino nodes
5256

docs/hardware/raspberrypi.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ using the standard package manager:
2121
sudo apt-get update
2222
sudo apt-get install nodered
2323

24+
**Note:** If you have upgraded to **node.js 4.x** or above then you cannot use apt-get to upgrade Node-RED. Use the standard <a href="/docs/getting-started/upgrading">upgrading instructions</a> instead.
25+
2426
#### Running Node-RED
2527

2628
To start Node-RED, you can either:
@@ -70,6 +72,9 @@ This will grab the latest version that has been made available on the Raspbian
7072
repositories. *Note*: there may be a slight delay between a release being made
7173
to the `npm` repositories and it being available in Raspbian.
7274

75+
<div class="doc-callout"><em>Note:</em> If you have upgraded to <em>node.js 4.x</em> or above then you can
76+
no longer use apt-get to upgrade Node-RED. Instead use the standard <a href="/docs/getting-started/upgrading">upgrading instructions</a>.</div>
77+
7378
### Upgrading node.js
7479

7580
#### Upgrade script
@@ -100,7 +105,7 @@ To see the list of nodes you had installed:
100105

101106
#### Next
102107

103-
You will then need to stop and restart Node-RED.
108+
You will then need to restart Node-RED.
104109
You can then start [using the editor](#using-the-editor).
105110

106111
----
@@ -125,6 +130,7 @@ If you upgrade node.js by hand then you will also need to rebuild any installed
125130
To do this you must uninstall the built-in version and re-install using the
126131
instructions below. To uninstall:
127132

133+
node-red-stop
128134
sudo apt-get remove nodered
129135
sudo apt-get remove nodejs nodejs-legacy
130136
sudo apt-get remove npm # if you installed npm
@@ -133,10 +139,9 @@ This will remove all the built in packages but leave your workspace - by default
133139
at `~/.node-red` . You may then proceed to re-install as per instructions below
134140

135141

136-
137142
#### Install Node.js
138143

139-
As the Pi 2 uses a different processor (Arm v7) compared with the original
144+
As the Pi 2 and 3 use a different processor (Arm v7) compared with the original
140145
Pi (Arm v6) the method of installing node.js is slightly different.
141146

142147
##### Raspberry Pi 2 and 3
@@ -284,6 +289,20 @@ Systemd uses the `/var/log/system.log` for logging. To filter the log use
284289

285290
sudo journalctl -f -u nodered -o cat
286291

292+
#### Changing the systemd environment - using a proxy
293+
294+
If you need to use a proxy for http requests - you need to set the *HTTP_PROXY* environment variable.
295+
When using *systemd* this must be done within the service configuration. To edit this use sudo to edit the file `/lib/systemd/system/nodered.service` and add another `Environment=` line, for example:
296+
297+
Nice=5
298+
Environment="NODE_OPTIONS=--max-old-space-size=128"
299+
Environment="HTTP_PROXY=my-proxy-server-address"
300+
301+
Save the file, and then run:
302+
303+
sudo systemctl daemon-reload
304+
305+
to reload the configuration. Stop and restart Node-RED.
287306

288307
## Using the Editor
289308

0 commit comments

Comments
 (0)