# 使用 npm 安装 mqtt

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

## 安装

```sh
sudo av install npm:mqtt
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g mqtt
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:mqtt
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/mqtt>
- **版本:** 5.15.1
- **来源摘要:** A library for the MQTT protocol
- **主页:** <https://github.com/mqttjs/MQTT.js#readme>
- **仓库:** <https://github.com/mqttjs/MQTT.js>
- **上游文档:** <https://github.com/mqttjs/MQTT.js#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/mqtt/-/mqtt-5.15.1.tgz>
- **问题跟踪器:** <https://github.com/mqttjs/MQTT.js/issues>
- **发布时间:** 2026-03-24T10:18:04.150Z
- **最后更新:** 2026-03-24T10:18:04.150Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- mqtt (cli)
- mqtt_pub (cli)
- mqtt_sub (cli)
- mqtt (别名)

## 依赖

- @types/readable-stream
- @types/ws
- commist
- concat-stream
- debug
- help-me
- lru-cache
- minimist
- mqtt-packet
- number-allocator
- readable-stream
- rfdc
- socks
- split2
- worker-timers
- ws

## 构建依赖

- @eslint/eslintrc
- @eslint/js
- @esm-bundle/chai
- @release-it/conventional-changelog
- @tsconfig/node20
- @types/chai
- @types/node
- @types/sinon
- @types/tape
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- @web/test-runner
- @web/test-runner-playwright
- aedes-cli
- chai
- chokidar
- conventional-changelog-cli
- end-of-stream
- esbuild
- esbuild-plugin-polyfill-node
- esbuild-register
- eslint
- eslint-config-prettier
- eslint-plugin-import
- eslint-plugin-prettier
- global
- globals
- leaked-handles
- mkdirp
- mqtt-connection
- mqtt-level-store
- nyc
- pre-commit
- prettier
- release-it
- rimraf
- should
- sinon
- snazzy
- tape
- ts-node
- typescript

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 5.15.1
- 管理器更新时间: 2026-03-24
- 本地数据: OK
- 上游仓库: https://github.com/mqttjs/MQTT.js
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Beta: 5.0.0-beta.4, Latest: 5.15.1, Next: 1.0.0-pre.6, Security Patch: 2.18.9, V4 Backport: 4.3.8
- **Version Count:** 217
- **Maintainers:** matteo.collina, adamvr, roberts_lando, avishekpant-msft
- **Publisher:** GitHub Actions
- **Engines:** Node: >=16.0.0
- **Integrity:** sha512-V1WnkGuJh3ec9QXzy5Iylw8OOBK+Xu1WhxcQ9mMpLThG+/JZIMV1PgLNRgIiqXhZnvnVLsuyxHl5A/3bHHbcAA==
- **Shasum:** 9a51515c4d327193d0314bc44e614b37f2f902d5
- **Unpacked Size:** 1,957,515
- **File Count:** 0
- **Created At:** 2013-02-12T15:27:29.643Z
- **Latest Published At:** 2026-03-24T10:18:04.150Z
- **Modified At:** 2026-03-24T10:18:04.428Z


## 相关链接

- [Package publisher tools](https://www.automicvault.com/zh-hans/pkg/package-publishers/) - Matched curated package taxonomy and local package facts.
- [bittorrent-tracker](https://www.automicvault.com/zh-hans/pkg/npm/bittorrent-tracker/) - Local package facts share a topical domain. Shared terms: debug, lru, minimist, socks, stream.
- [0x](https://www.automicvault.com/zh-hans/pkg/npm/0x/) - Local package facts share a topical domain. Shared terms: concat, concat-stream, debug, minimist, stream.
- [faucet](https://www.automicvault.com/zh-hans/pkg/npm/faucet/) - Local package facts share a topical domain. Shared terms: minimist, protocol, readable, readable-stream, stream.

## 来源

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
