# 使用 npm 安装 n8n

查看 n8n 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install npm:n8n
```

其他安装命令:

### 便携式和语言管理器

- npm (100%):

```sh
npm install -g n8n
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:n8n
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/n8n>
- **版本:** 2.25.7
- **来源摘要:** n8n Workflow Automation Tool
- **主页:** <https://n8n.io>
- **仓库:** <https://github.com/n8n-io/n8n>
- **上游文档:** <https://n8n.io>
- **许可证:** SEE LICENSE IN LICENSE.md
- **源码归档:** <https://registry.npmjs.org/n8n/-/n8n-2.25.7.tgz>
- **问题跟踪器:** <https://github.com/n8n-io/n8n/issues>
- **发布时间:** 2026-06-10T08:45:26.303Z
- **最后更新:** 2026-06-19T10:20:08.050Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- n8n (cli)
- n8n (别名)

## 依赖

- @1password/connect
- @ai-sdk/anthropic
- @apidevtools/json-schema-ref-parser
- @aws-sdk/client-secrets-manager
- @azure/identity
- @azure/keyvault-secrets
- @chat-adapter/linear
- @chat-adapter/slack
- @chat-adapter/state-memory
- @chat-adapter/telegram
- @google-cloud/secret-manager
- @modelcontextprotocol/sdk
- @n8n/agents
- @n8n/ai-node-sdk
- @n8n/ai-utilities
- @n8n/ai-workflow-builder
- @n8n/api-types
- @n8n/backend-common
- @n8n/chat-hub
- @n8n/client-oauth2
- @n8n/config
- @n8n/constants
- @n8n/db
- @n8n/decorators
- @n8n/di
- @n8n/errors
- @n8n/expression-runtime
- @n8n/instance-ai
- @n8n/mcp-apps
- @n8n/n8n-nodes-langchain
- @n8n/permissions
- @n8n/syslog-client
- @n8n/task-runner
- @n8n/typeorm
- @n8n/utils
- @n8n/workflow-sdk
- @n8n_io/ai-assistant-sdk
- @n8n_io/license-sdk
- @opentelemetry/api
- @opentelemetry/exporter-trace-otlp-proto
- @opentelemetry/instrumentation
- @opentelemetry/resources
- @opentelemetry/sdk-node
- @opentelemetry/sdk-trace-base
- @opentelemetry/sdk-trace-node
- @opentelemetry/semantic-conventions
- @parcel/watcher
- @rudderstack/rudder-sdk-node
- @sentry/node
- aws4
- axios
- bcryptjs
- bull
- cache-manager
- change-case
- chat
- class-transformer
- class-validator
- compression
- convict
- cookie-parser
- cron
- csrf
- csv-parse
- dotenv
- express
- express-handlebars
- express-openapi-validator
- express-prom-bundle
- express-rate-limit
- fast-glob
- fast-json-patch
- fastest-levenshtein
- flat
- flatted
- formidable
- handlebars
- helmet
- http-proxy-middleware
- infisical-node
- ioredis
- isbot
- isolated-vm
- jose
- json-diff
- jsonschema
- jsonwebtoken
- langsmith
- ldapts
- lodash
- luxon
- n8n-core
- n8n-editor-ui
- n8n-nodes-base
- n8n-workflow
- nanoid
- nodemailer
- oauth-1.0a
- open
- openid-client
- otpauth
- p-cancelable
- p-lazy
- p-limit
- pdf-parse
- pg
- picocolors
- pkce-challenge
- posthog-node
- prettier
- prom-client
- psl
- raw-body
- reflect-metadata
- replacestream
- samlify
- semver
- shelljs
- simple-git
- source-map-support
- sqlite3
- sshpk
- sucrase
- swagger-ui-express
- tar
- undici
- uuid
- validator
- ws
- xml2js
- xmllint-wasm
- xss
- yaml
- yargs-parser
- zod
- zod-to-json-schema

## 构建依赖

- @n8n/backend-test-utils
- @n8n/playwright-janitor
- @n8n/typescript-config
- @redocly/cli
- @types/aws4
- @types/bcryptjs
- @types/compression
- @types/convict
- @types/cookie-parser
- @types/express
- @types/flat
- @types/formidable
- @types/json-diff
- @types/jsonwebtoken
- @types/lodash
- @types/psl
- @types/replacestream
- @types/shelljs
- @types/sshpk
- @types/superagent
- @types/swagger-ui-express
- @types/syslog-client
- @types/uuid
- @types/validator
- @types/ws
- @types/xml2js
- @types/yargs-parser
- @vvo/tzdb
- concurrently
- esbuild
- ioredis-mock
- mjml
- n8n-containers
- openai
- openapi-types
- ts-essentials

## 安装行为

- post-install 钩子: 未定义
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2.25.7
- 管理器更新时间: 2026-06-19
- 本地数据: OK
- 上游仓库: https://github.com/n8n-io/n8n
- 信息: No cached GitHub release or tag data was available.

## 安全说明

没有找到 n8n 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Beta: 2.26.4, Latest: 2.25.7, Next: 2.26.4, Rc: 1.123.56, Stable: 2.25.7
- **Version Count:** 1,025
- **Maintainers:** jan_n8n_io, tomin8n
- **Author:** Jan Oberhauser
- **Publisher:** GitHub Actions
- **Engines:** Node: >=22.22
- **Integrity:** sha512-shT4RczYKC3p78zfS+3t4e0Knn9D96aSzWEn33GLJG6s7+RRrm+9KFWgVXvxVV/Qx+S7S/m+T6oHGvTugsshMA==
- **Shasum:** 2a4915d02e3d49b49640164aea46bd9263ab41ef
- **Unpacked Size:** 15,066,022
- **File Count:** 0
- **Created At:** 2019-04-24T23:48:19.822Z
- **Latest Published At:** 2026-06-10T08:45:26.303Z
- **Modified At:** 2026-06-15T11:23:50.814Z

## 其他软件包管理器记录

- Nix - n8n: normalized package name match | nixpkgs package indexes: pkgs/by-name/n8/n8n/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Productivity CLI packages](https://www.automicvault.com/zh-hans/pkg/productivity-cli-packages/) - Matched curated package taxonomy and local package facts.
- [n8n-mcp](https://www.automicvault.com/zh-hans/pkg/npm/n8n-mcp/) - Package names and metadata indicate a similar tool family. Shared terms: automation, cli, modelcontextprotocol, n8n, productivity.
- [decocms](https://www.automicvault.com/zh-hans/pkg/npm/decocms/) - Both packages touch the same language runtime or ecosystem. Shared terms: ai-sdk, anthropic, aws, aws-sdk, cli.
- [lingo.dev](https://www.automicvault.com/zh-hans/pkg/npm/lingo-dev/) - Both packages touch the same language runtime or ecosystem. Shared terms: ai-sdk, anthropic, api, cli, client.

## 来源

- Nucleus package database
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
