Skip to content

Commit 8205b8b

Browse files
author
Dave Conway-Jones
committed
change npm link to npm install as it's cleaner.
1 parent f1e6367 commit 8205b8b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/creating-nodes/packaging.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ directory, or they could each be placed in their own sub-directory.
3131

3232
### Testing a node module locally
3333

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.
3736

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:
4038

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
4242
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.
4444

4545
### package.json
4646

0 commit comments

Comments
 (0)