You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/hardware/raspberrypi.md
+22-3Lines changed: 22 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ using the standard package manager:
21
21
sudo apt-get update
22
22
sudo apt-get install nodered
23
23
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 <ahref="/docs/getting-started/upgrading">upgrading instructions</a> instead.
25
+
24
26
#### Running Node-RED
25
27
26
28
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
70
72
repositories. *Note*: there may be a slight delay between a release being made
71
73
to the `npm` repositories and it being available in Raspbian.
72
74
75
+
<divclass="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 <ahref="/docs/getting-started/upgrading">upgrading instructions</a>.</div>
77
+
73
78
### Upgrading node.js
74
79
75
80
#### Upgrade script
@@ -100,7 +105,7 @@ To see the list of nodes you had installed:
100
105
101
106
#### Next
102
107
103
-
You will then need to stop and restart Node-RED.
108
+
You will then need to restart Node-RED.
104
109
You can then start [using the editor](#using-the-editor).
105
110
106
111
----
@@ -125,6 +130,7 @@ If you upgrade node.js by hand then you will also need to rebuild any installed
125
130
To do this you must uninstall the built-in version and re-install using the
126
131
instructions below. To uninstall:
127
132
133
+
node-red-stop
128
134
sudo apt-get remove nodered
129
135
sudo apt-get remove nodejs nodejs-legacy
130
136
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
133
139
at `~/.node-red` . You may then proceed to re-install as per instructions below
134
140
135
141
136
-
137
142
#### Install Node.js
138
143
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
140
145
Pi (Arm v6) the method of installing node.js is slightly different.
141
146
142
147
##### Raspberry Pi 2 and 3
@@ -284,6 +289,20 @@ Systemd uses the `/var/log/system.log` for logging. To filter the log use
284
289
285
290
sudo journalctl -f -u nodered -o cat
286
291
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:
0 commit comments