mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2025-11-20 17:48:34 +00:00
Update testing.md
This commit is contained in:
parent
57fce4d177
commit
db142290c1
@ -12,13 +12,13 @@ You can test your node as you build it by running it in a local n8n instance.
|
||||
```
|
||||
3. Install the node into your local n8n instance:
|
||||
```shell
|
||||
# In the directory where you installed n8n
|
||||
# In the nodes directory within your n8n installation
|
||||
# node-package-name is the name from the package.json
|
||||
npm link <node-package-name>
|
||||
```
|
||||
|
||||
!!! note "Check your directory"
|
||||
Make sure you run `npm link <node-name>` in the main directory where you installed n8n. This is probably in the `node_modules` directory within your Node.js installation, if you installed n8n globally.
|
||||
Make sure you run `npm link <node-name>` in the nodes directory within your n8n installation. This is probably something like `~/.n8n/nodes/node_modules/`
|
||||
|
||||
4. Start n8n:
|
||||
```
|
||||
@ -27,4 +27,4 @@ You can test your node as you build it by running it in a local n8n instance.
|
||||
5. Open n8n in your browser. You should see your nodes when you search for them in the nodes panel.
|
||||
|
||||
!!! note "Node names"
|
||||
Make sure you search using the node name, not the package name. For example, if your npm package name is `n8n-nodes-weather-nodes`, and the package contains nodes named `rain`, `sun`, `snow`, you should search for `rain`, not `weather-nodes`.
|
||||
Make sure you search using the node name, not the package name. For example, if your npm package name is `n8n-nodes-weather-nodes`, and the package contains nodes named `rain`, `sun`, `snow`, you should search for `rain`, not `weather-nodes`.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user