I have to for my company create many custom nodes, I followed this part :
It’s work for one or two etc… custom node in same folder when I build and launch n8n, but if I want organize my main folder with one folder by custom node, I have to build by each folder and after that I can launch n8n, is it not possible to build in one time all sub-folder ?
Welcome to the community
Can you please elaborate on what do you mean by
is it not possible to build in one time all sub-folder ?
You create the nodes and then build n8n. It will build all the nodes together.
Hello @harshil1712 ,
I use " Node Dev CLI" to create custom node with n8n installing general mode.
The doc say :
- Build the node and copy to correct location:
- Restart n8n and refresh the window so that the new node gets displayed
it’s work but when I try :
The build not working
The tool currently doesn’t support building nodes in the sub-folder. You will have to have them in a single folder (the mainFolder) or create nodes packages (eg: GitHub - n8n-io/n8n-nodes-starter: Example starter module for custom n8n nodes.).
If you plan to create node packages, you will have to install them alongside n8n to use them. You can find more information on that here: Using the Node Dev CLI | Docs
All right, thanks @harshil1712
Let us know which approach you take and if you face any issue, feel free to ask us on the forum