创建节点#
¥Creating nodes
了解如何构建你自己的自定义 nodes。
¥Learn how to build your own custom nodes.
本节包含:
¥This section includes:
- 构建规划指南,包括 使用哪种样式。
¥Guidance on planning your build, including which style to use.
- 教程 用于不同的节点构建风格。
¥Tutorials for different node building styles.
- 测试你的节点 的使用说明,包括如何使用 n8n 的 node 代码检查器 和 troubleshooting 支持。
¥Instructions for testing your node, including how to use the n8n node linter and troubleshooting support.
¥How to share your node with the community, submit it for verification by n8n, or use it as a private node.
- 参考资料,包括 UI 元素和构成节点的各个文件的信息。
¥Reference material, including UI elements and information on the individual files that make up a node.
先决条件#
¥Prerequisites
本节假设:
¥This section assumes the following:
- 需要熟悉 JavaScript 和 TypeScript。
¥Some familiarity with JavaScript and TypeScript.
- 能够管理你自己的开发环境,包括 Git。
¥Ability to manage your own development environment, including git.
- 熟悉 npm,包括创建和提交包。
¥Knowledge of npm, including creating and submitting packages.
¥Familiarity with n8n, including a good understanding of data structures and item linking.