从 npm 手动安装社区节点#
¥Manually install community nodes from npm
你可以从 npm 注册表手动安装自托管 n8n 上的社区节点。
¥You can manually install community nodes from the npm registry on self-hosted n8n.
在以下情况下,你需要手动安装社区节点:
¥You need to manually install community nodes in the following circumstances:
- 你的 n8n 实例以队列模式运行。
¥Your n8n instance runs in queue mode.
- 你希望安装 私有软件包。
¥You want to install private packages.
安装社区节点#
¥Install a community node
访问你的 Docker shell:
¥Access your Docker shell:
1 | |
如果 ~/.n8n/nodes 尚不存在,请创建它并导航到其中:
¥Create ~/.n8n/nodes if it doesn't already exist, and navigate into it:
1 2 | |
安装节点:
¥Install the node:
1 | |
然后重启 n8n。
¥Then restart n8n.
卸载社区节点#
¥Uninstall a community node
访问你的 Docker shell:
¥Access your Docker shell:
1 | |
运行 npm uninstall:
¥Run npm uninstall:
1 | |
升级社区节点#
¥Upgrade a community node
Breaking changes in versions
节点开发者可能会在其节点的新版本中引入重大更改。破坏性变更是指会破坏先前功能的更新。取决于节点版本控制方法。如果节点开发者选择升级到包含重大变更的版本,则可能会导致所有使用该节点的流程崩溃。升级节点时请务必小心。如果你发现升级导致问题,可以执行 downgrade。
¥Node developers may introduce breaking changes in new versions of their nodes. A breaking change is an update that breaks previous functionality. Depending on the node versioning approach that a node developer chooses, upgrading to a version with a breaking change could cause all workflows using the node to break. Be careful when upgrading your nodes. If you find that an upgrade causes issues, you can downgrade.
升级到最新版本#
¥Upgrade to the latest version
访问你的 Docker shell:
¥Access your Docker shell:
1 | |
运行 npm update:
¥Run npm update:
1 | |
升级或降级到特定版本#
¥Upgrade or downgrade to a specific version
访问你的 Docker shell:
¥Access your Docker shell:
1 | |
运行 npm uninstall 以移除当前版本:
¥Run npm uninstall to remove the current version:
1 | |
使用指定的版本运行 npm install:
¥Run npm install with the version specified:
1 2 | |