# 使用 npm 安装 http-server

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

## 安装

```sh
sudo av install npm:http-server
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g http-server
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:http-server
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/http-server>
- **版本:** 14.1.1
- **来源摘要:** A simple zero-configuration command-line http server
- **主页:** <https://github.com/http-party/http-server#readme>
- **仓库:** <https://github.com/http-party/http-server>
- **上游文档:** <https://github.com/http-party/http-server#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/http-server/-/http-server-14.1.1.tgz>
- **问题跟踪器:** <https://github.com/http-party/http-server/issues>
- **发布时间:** 2022-05-31T21:34:27.707Z
- **最后更新:** 2022-05-31T21:34:27.707Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- http-server (cli)

## 依赖

- basic-auth
- chalk
- corser
- he
- html-encoding-sniffer
- http-proxy
- mime
- minimist
- opener
- portfinder
- secure-compare
- union
- url-join

## 构建依赖

- eol
- eslint
- eslint-config-populist
- express
- request
- tap

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 14.1.1
- 管理器更新时间: 2022-05-31
- 本地数据: OK
- 上游仓库: https://github.com/http-party/http-server
- 警告: The package-manager record has not been updated in over a year.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 14.1.1
- **Version Count:** 49
- **Maintainers:** indexzero, bigbluehat, thornjad
- **Publisher:** thornjad
- **Engines:** Node: >=12
- **Integrity:** sha512-+cbxadF40UXd9T01zUHgA+rlo2Bg1Srer4+B4NwIHdaGxAGGv59nYRnGGDJ9LBk7alpS0US+J+bLLdQOOkJq4A==
- **Shasum:** d60fbb37d7c2fdff0f0fbff0d0ee6670bd285e2e
- **Unpacked Size:** 124,459
- **File Count:** 0
- **Created At:** 2011-06-17T00:03:43.653Z
- **Latest Published At:** 2022-05-31T21:34:27.707Z
- **Modified At:** 2025-10-13T17:09:14.983Z

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

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


## 相关链接

- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched curated package taxonomy and local package facts.
- [http-server](https://pkg.so/zh-hans/brew/http-server/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, command-line, configuration, files, http.
- [angular-http-server](https://pkg.so/zh-hans/npm/angular-http-server/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, http, http-proxy, http-server, mime.
- [node-static](https://pkg.so/zh-hans/npm/node-static/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, files, http, mime, networking.
- [http-server](https://pkg.so/zh-hans/brew/http-server/) - Same normalized package name exists in another local package ecosystem.

## 来源

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