Add simple custom nodes - n8n-node-dev is not working

Hello

I try to add a very simple (transformation) node to n8n. For this, i have tried to follow his tutorial:
https://support.dropsolid.io/integrations/n8n/extending_with_custom_n8n_nodes/

I have read that with this tool it should be possible to compile just one file and place it inside a folder called “custom” within n8n. This is the approach i try to follow, since my production n8n is running using docker and docker-compose.yml. I would like to expose the cusom folder to the host and just place my single file in there to have my custom node available.

I do the following:

n8n-node-dev new
n8n-node-dev build

I got this error message:

n8n-node-dev build       

Build credentials and nodes
=========================
GOT ERROR: "Cannot find module 'n8n-node-dev/src'

Please share your workflow

Information on your n8n setup

  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: Windows 10
  • Node Version: v 18.18.2
  • NPM: v 10.2.0
  • Global installed Modules (npm list -g):
    ±- azure-functions-core-tools@4.0.3971
    ±- n8n-node-dev@0.100.0
    ±- n8n@1.9.3
    ±- npm@10.2.0
    `-- typescript@5.2.2

Thanks for your help

Hi @swissbyte, welcome to the community!

I am sorry you’re having trouble. This isn’t a tutorial provided by n8n, perhaps you want to check out the official documentation at Creating nodes | n8n Docs instead?

If you run into any trouble with this example I am sure @marcus from our node engineering team will be happy to help :slight_smile: