从 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 实例以队列模式运行。
- 您想要安装私有软件包。
安装社区节点(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 | |
卸载社区节点(Uninstall a community node)#
访问你的 Docker shell:
🌐 Access your Docker shell:
1 | |
运行 npm uninstall:
🌐 Run npm uninstall:
1 | |
升级社区节点(Upgrade a community node)#
版本中的重大更改
节点开发者可能会在新版本的节点中引入破坏性变更。破坏性变更是指会破坏先前功能的更新。根据节点开发者选择的版本控制方式,升级到包含破坏性变更的版本可能会导致使用该节点的所有工作流出现中断。在升级节点时请小心。如果发现升级导致问题,你可以降级。
升级到最新版本(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 | |