# 使用 npm 安装 detect-port

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

## 安装

```sh
sudo av install npm:detect-port
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g detect-port
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:detect-port
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/detect-port>
- **版本:** 2.1.0
- **来源摘要:** Node.js implementation of port detector
- **主页:** <https://github.com/node-modules/detect-port>
- **仓库:** <https://github.com/node-modules/detect-port>
- **上游文档:** <https://github.com/node-modules/detect-port>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/detect-port/-/detect-port-2.1.0.tgz>
- **问题跟踪器:** <https://github.com/node-modules/detect-port/issues>
- **发布时间:** 2024-12-10T03:41:16.902Z
- **最后更新:** 2024-12-10T03:41:16.902Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- detect (cli)
- detect-port (cli)
- detect-port (别名)

## 依赖

- address

## 构建依赖

- @eggjs/tsconfig
- @types/mocha
- @types/node
- egg-bin
- eslint
- eslint-config-egg
- execa
- mm
- strip-ansi
- tshy
- tshy-after
- typescript

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.1.0
- 管理器更新时间: 2024-12-10
- 本地数据: OK
- 上游仓库: https://github.com/node-modules/detect-port
- 警告: The package-manager record has not been updated in over a year.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 2.1.0, Release 1.x: 1.6.1
- **Version Count:** 33
- **Maintainers:** fengmk2, xudafeng, ziczhu
- **Publisher:** fengmk2
- **Engines:** Node: >= 16.0.0
- **Integrity:** sha512-epZuWb/6Q62L+nDHJc/hQAqf8pylsqgk3BpZXVBx1CDnr3nkrVNn73Uu1rXcFzkNcc+hkP3whuOg7JZYaQB65Q==
- **Shasum:** 03d72644891fa451ca5609b83107a8a0ebd03f91
- **Unpacked Size:** 55,342
- **File Count:** 0
- **Created At:** 2015-05-29T17:24:30.990Z
- **Latest Published At:** 2024-12-10T03:41:16.902Z
- **Modified At:** 2024-12-10T03:41:17.418Z


## 相关链接

- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched curated package taxonomy and local package facts.
- [adminjs](https://pkg.so/zh-hans/npm/adminjs/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, networking, node, node-js.
- [aspida](https://pkg.so/zh-hans/npm/aspida/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, networking, node, node-js.
- [blessed](https://pkg.so/zh-hans/npm/blessed/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, networking, node, node-js.

## 来源

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
