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:
    https://docs.n8n.io/#/configuration?id=use-built-in-and-external-modules-in-function-nodes
  2. Create your own n8n-node-module like described here:
    https://docs.n8n.io/#/create-node?id=create-own-custom-n8n-nodes-module
  3. Create a new node in the existing n8n-nodes-base module like described here: https://github.com/n8n-io/n8n/blob/master/CONTRIBUTING.md#create-a-new-node-to-contribute-to-n8n

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