@@ -10,25 +10,37 @@ You can get the latest version from <http://nodejs.org/download/>.
10
10
Or, you may want to use a version from your operating system's package manager :
11
11
<https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager>
12
12
13
- # ## Get Node-RED
13
+ # ## Install Node-RED
14
14
15
- There are several ways to install Node-RED. The simplest is to use npm.
15
+ There are two ways to get Node-RED; either via npm, or directly from GitHub :
16
16
17
+ # ### Using npm
18
+
19
+ $ mkdir node-red
20
+ $ cd node-red
17
21
$ npm install node-red
18
22
19
- Or you can clone the repository from GitHub :
23
+ This installs Node-RED, and its core dependencies into the `node_modules`
24
+ directory.
20
25
21
- $ git clone https://github.com/node-red/node-red.git
26
+ Installing via npm also allows you to [embed Node-RED into an existing application](../embedding.html).
22
27
23
- Or you can download the latest zip file from <https://github.com/node-red/node-red/archive/master.zip>.
28
+ The version installed by npm is a point-in-time snapshot. To get the latest code run :
24
29
25
- # ## Install the pre-requisite modules
30
+ $ npm install node-red/node-red
26
31
27
- From the top-level directory of Node-RED, run :
32
+ # ### From GitHub
28
33
29
- $ npm install
34
+ Either clone the repository :
35
+
36
+ $ git clone https://github.com/node-red/node-red.git
37
+
38
+ Or download the latest zip file from <https://github.com/node-red/node-red/archive/master.zip>.
30
39
31
- This will install the core pre-requisite modules.
40
+ Once downloaded, the core pre-requisite modules must be installed. From the top-level
41
+ directory of Node-RED, run :
42
+
43
+ $ npm install
32
44
33
45
# ## Installing individual node dependencies
34
46
@@ -40,8 +52,9 @@ Each will have its own set of dependencies that will need to be installed before
40
52
the node is available in the palette.
41
53
42
54
To help identify the dependencies, Node-RED logs any modules it fails to find
43
- for a particular node. You don't have to install these unless you want or need
44
- that node to appear.
55
+ for a particular node. You only need to install these dependencies if you want
56
+ to use that node. For example, you probably don't want to install the `pi-gpio`
57
+ module unless you are running on a Raspberry Pi.
45
58
46
59
Alternatively, a node's `.js` file can be examined to identify the modules it
47
60
explicitly requires. For example, the Twitter node is defined in
0 commit comments