API、CLI 与扩展

Set up your development environment

This document lists the essential dependencies for developing a node, as well as guidance on setting up your editor.

Requirements

To build and test a node, you need:

  • Node.js and npm. Minimum version Node 22.22.0. You can find instructions on how to install both using nvm (Node Version Manager) for Linux, Mac, and WSL (Windows Subsystem for Linux) here. For Windows users, refer to Microsoft's guide to Install NodeJS on Windows.
  • A local instance of n8n. You can install n8n with npm install n8n -g, then follow the steps in Run your node locally to test your node.
  • When building verified community nodes, you must use the n8n-node tool to create and test your node.

You should also have git installed. This allows you to clone and use the n8n-node-starter.

Editor setup

n8n recommends using VS Code as your editor.

Install these extensions:

By using VS Code and these extensions, you get access to the n8n node linter's warnings as you code.

官方原文和授权

本页来自 N8N 英文官方网站固定快照,并转换成 xueai 静态页面。内容以 N8N 持续更新的官方页面为准。

来源、授权与修改

本站保留许可证、固定提交号、社区作者和修改说明,不代表 n8n 对本站背书。

查看许可证查看来源和修改说明