If n8n-nodes-heygen-official in some folder "/home/username/projects/n8n-heygen-node" after changing code of this node, we need:
- In this folder run
npm run build && npm link - Go to global n8n folder and sub-folder "custom" (for example: ~/.n8n/custom) and from this folder run
npm link n8n-nodes-heygen-officialwhere "n8n-nodes-heygen-official" is name of this package (in package.json) - Run
n8n startto start local n8n server (if the console fills with Rudder/PostHogECONNREFUSEDnoise, use./scripts/n8n-start-local.shinstead — seedocs/n8n-network-quiet.md) - In n8n, add the HeyGen node; actions are grouped under Resource (Video, List, Avatar, Video Agent, Lipsync, Asset, …) and Operation
- Link operations need to be done only one time, then after changes in code, just run
npm run buildand thenn8n startto see changes
- Run
npm run lintto check for errors ornpm run lintfixto automatically fix errors when possible.
Important: Some of lint errors do not follow logic, so we can skip them.
- Publish your package to npm.
Refer to documentation on creating nodes for detailed information on building your own nodes.