File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -31,16 +31,16 @@ directory, or they could each be placed in their own sub-directory.
31
31
32
32
### Testing a node module locally
33
33
34
- To test a node module locally, the ` npm link ` command can be used. This allows you
35
- to develop the node in a local directory and have it linked into a local node-red
36
- install, as if it had been npm installed.
34
+ To test a node module locally, the [ ` npm install <folder> ` ] ( https://docs.npmjs.com/cli/install ) command can be used. This allows you
35
+ to develop the node in a local directory and have it linked into a local node-red install during development.
37
36
38
- 1 . in the directory containing the node's ` package.json ` file, run: ` sudo npm link ` .
39
- 2 . in your node-red user directory, typically ` ~/.node-red ` run: ` npm link <name of node module> ` .
37
+ In your node-red user directory, typically ` ~/.node-red ` , run:
40
38
41
- This creates the appropriate symbolic links between the two directories so Node-RED
39
+ npm install <path to location of node module>
40
+
41
+ This creates the appropriate symbolic link to the directory so that Node-RED
42
42
will discover the node when it starts. Any changes to the node's file can be picked
43
- up by simply restarting Node-RED.
43
+ up by simply restarting Node-RED.
44
44
45
45
### package.json
46
46
You can’t perform that action at this time.
0 commit comments