Add new node library to the project

Hi, I want to use a node library in the custom node, can anyone help me setting up this node library in n8n project.

How are you running n8n? If for example in Docker that will simply not be possible.

I am running it in dev mode, and new node is present in .n8n/custom.

Ok, in that case, you have a few different choices:

  1. npm install the module in packages/cli and then allow the module like described here:
    Introduction | Docs
  2. Create your own n8n-node-module like described here:
    Introduction | Docs
  3. Create a new node in the existing n8n-nodes-base module like described here: n8n/CONTRIBUTING.md at master · n8n-io/n8n · GitHub

You should definitly check out 2., we switched to that approach recently and not looking back

1 Like