Skip to content

在 n8n 应用中通过 npm 安装社区节点(Install community nodes from npm in the n8n app)#

仅限所有者和管理员用户

只有拥有所有者或管理员角色的用户才能在自托管的 n8n 实例上从 npm 安装和管理社区节点。实例所有者是负责设置和管理用户管理的人。

安装社区节点(Install a community node)#

要从 npm 安装社区节点:

🌐 To install a community node from npm:

  1. 前往 设置 > 社区节点
  2. 选择 安装
  3. 找到要安装的节点:
    1. 选择 浏览。n8n 会带你到一个 npm 搜索结果页面,显示所有带有关键字 n8n-community-node-package 的 npm 包。
    2. 浏览结果列表。你可以筛选结果或添加更多关键词。
    3. 一旦找到你想要的软件包,记下软件包的名称。如果你想安装特定版本,也记下版本号。
    4. 返回 n8n。
  4. 输入 npm 包名称,如有需要还可以输入版本号。例如,考虑一个用于访问名为“Storms”的天气 API 的社区节点。该包名称是 n8n-node-storms,它有三个主要版本。
    • 要安装名为 n8n-node-weather 的最新版本包:在 输入 npm 包名称 中输入 n8n-nodes-storms
    • 要安装版本 2.3:在 输入 npm 包名称 中输入 n8n-node-storms@2.3
  5. 同意使用社区节点的风险:选择 我理解从公共来源安装未经验证的代码的风险。
  6. 选择安装。n8n 会安装该节点,并返回到设置中的社区节点列表。

黑名单上的节点

n8n 保持了一个社区节点黑名单,它会阻止你安装这些节点。有关更多信息,请参阅 n8n 社区节点黑名单

卸载社区节点(Uninstall a community node)#

要卸载社区节点:

🌐 To uninstall a community node:

  1. 前往 设置 > 社区节点
  2. 在你想要安装的节点上,选择 选项 三点菜单
  3. 选择 卸载软件包
  4. 在确认对话框中选择 卸载软件包

升级社区节点(Upgrade a community node)#

版本中的重大更改

节点开发者可能会在新版本的节点中引入破坏性变更。破坏性变更是指会破坏先前功能的更新。根据节点开发者选择的版本控制方式,升级到包含破坏性变更的版本可能会导致使用该节点的所有工作流出现中断。在升级节点时请小心。如果发现升级导致问题,你可以降级

升级到最新版本(Upgrade to the latest version)#

您可以在 设置 > 社区节点 的节点列表中将社区节点升级到最新版本。

🌐 You can upgrade community nodes to the latest version from the node list in Settings > community nodes.

当社区节点有新版本可用时,n8n 会在节点上显示 更新 按钮。点击该按钮即可升级到最新版本。

🌐 When a new version of a community node is available, n8n displays an Update button on the node. Click the button to upgrade to the latest version.

升级到特定版本(Upgrade to a specific version)#

要升级到特定版本(非最新版本),请先卸载节点,然后重新安装,并确保指定目标版本。有关更多指导,请参阅安装说明。

🌐 To upgrade to a specific version (a version other than the latest), uninstall the node, then reinstall it, making sure to specify the target version. Follow the Installation instructions for more guidance.

降级社区节点(Downgrade a community node)#

如果某个社区节点的特定版本存在问题,你可能需要回滚到之前的版本。

🌐 If there is a problem with a particular version of a community node, you may want to roll back to a previous version.

为此,请卸载社区节点,然后重新安装,指定特定的节点版本。有关更多指导,请参阅安装说明。

🌐 To do this, uninstall the community node, then reinstall it, targeting a specific node version. Follow the Installation instructions for more guidance.