# 使用 npm 安装 truffle

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

## 安装

```sh
sudo av install npm:truffle
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g truffle
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:truffle
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/truffle>
- **版本:** 5.11.5
- **来源摘要:** Truffle - Simple development framework for Ethereum
- **主页:** <https://github.com/trufflesuite/truffle#readme>
- **仓库:** <https://github.com/trufflesuite/truffle>
- **上游文档:** <https://github.com/trufflesuite/truffle#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/truffle/-/truffle-5.11.5.tgz>
- **问题跟踪器:** <https://github.com/trufflesuite/truffle/issues>
- **发布时间:** 2023-09-13T21:19:42.555Z
- **最后更新:** 2023-09-13T21:19:42.555Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- truffle (cli)

## 依赖

- @truffle/db
- @truffle/db-loader
- @truffle/debugger
- app-module-path
- ganache
- mocha
- original-require

## 构建依赖

- @ganache/console.log
- @truffle/box
- @truffle/config
- @truffle/contract
- @truffle/core
- @truffle/interface-adapter
- chai
- clean-webpack-plugin
- copy-webpack-plugin
- eslint
- fs-extra
- glob
- graphql-tag
- js-scrypt
- nyc
- semver
- shebang-loader
- stream-buffers
- tmp
- web3
- webpack
- webpack-bundle-analyzer
- webpack-cli
- yargs

## 安装行为

- post-install 钩子: 已定义
- npm 生命周期脚本: postinstall, prepare
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 5.11.5
- 管理器更新时间: 2023-09-13
- 本地数据: OK
- 上游仓库: https://github.com/trufflesuite/truffle
- 警告: The package-manager record has not been updated in over a year.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Abi Utils: 5.1.49-abi-utils.0, Cgewecke: 5.1.46-alpha.0, Cheerios: 5.3.10-cheerios.1, Dashboard: 5.4.32-dashboard.1, Decoder Beta: 5.4.13-decoder-beta.0, Decoder No Web3: 5.3.10-decoder-no-web3.0, Eip1559 Beta: 5.4.10-alpha.1, Fc: 5.4.14-fc.0, Fix Decoder Types: 5.1.15-fix-decoder-types.0, Hardhat Error: 5.5.29-hardhat-error.0, Latest: 5.11.5, Micah: 5.0.45-micah.0, Migrate Describe: 5.0.36-migrate-describe.1, Next: 5.1.34-next.0, Node L T S: 5.1.14-nodeLTS.0, Preserves: 5.2.7-preserves.5, Save Intermediate: 5.1.37-save-intermediate.1, Sign Typed Data V4: 5.5.19-alpha.2, Tezos: 5.5.0-tezos.4, Truffle Logger: 5.1.16-truffleLogger.0, Typescript Migrations: 5.6.0-typescript-migrations.0, V4: 4.1.17, Visual Debugger: 5.9.0-visual-debugger.0
- **Version Count:** 502
- **Maintainers:** jeff.smale, gnidan, tcoulter
- **Author:** consensys.net
- **Publisher:** haltman
- **Engines:** Node: ^16.20 || ^18.16 || >=20
- **Optional Dependencies:** @truffle/db
- **Integrity:** sha512-yCa2uWs5DmL0spuJUuIMtnVayRQrVuWLtcRXHMB0NLrtWDcRo7VM9RViveV4+oi9LdZ8VpFmmqHGm43LbzUxOA==
- **Shasum:** b0a3a9308c417dbe0290307d7698316d3e8eabe8
- **Unpacked Size:** 59,215,217
- **File Count:** 0
- **Created At:** 2015-06-29T20:55:39.898Z
- **Latest Published At:** 2023-09-13T21:19:42.555Z
- **Modified At:** 2026-04-29T21:46:38.301Z


## 相关链接

- [Package ecosystem packages](https://www.automicvault.com/zh-hans/pkg/package-ecosystem-tools/) - Matched curated package taxonomy and local package facts.
- [truffle](https://www.automicvault.com/zh-hans/pkg/brew/truffle/) - Same normalized package name appears in another local ecosystem. Shared terms: blockchain, cli, developer, developer-tools, development.
- [conventional-changelog](https://www.automicvault.com/zh-hans/pkg/npm/conventional-changelog/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, loader.
- [skuba](https://www.automicvault.com/zh-hans/pkg/npm/skuba/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, development.
- [truffle](https://www.automicvault.com/zh-hans/pkg/brew/truffle/) - Same normalized package name exists in another local package ecosystem.

## 来源

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