# 使用 npm 安装 static-server

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

## 安装

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

其他安装命令:

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

- npm (100%):

```sh
npm install -g static-server
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:static-server
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/static-server>
- **版本:** 2.2.1
- **来源摘要:** A simple http server to serve static resource files from a local directory.
- **主页:** <https://github.com/nbluis/static-server#readme>
- **仓库:** <https://github.com/nbluis/static-server>
- **上游文档:** <https://github.com/nbluis/static-server#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/static-server/-/static-server-2.2.1.tgz>
- **问题跟踪器:** <https://github.com/nbluis/static-server/issues>
- **发布时间:** 2018-04-03T14:23:43.285Z
- **最后更新:** 2018-04-03T14:23:43.285Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- static-server (cli)
- static-server (别名)

## 依赖

- chalk
- commander
- file-size
- mime
- opn

## 构建依赖

- istanbul
- mocha
- should
- supertest

## 安装行为

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

## 版本和新鲜度

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

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 2.2.1
- **Version Count:** 14
- **Maintainers:** nbluis
- **Author:** Eduardo Bohrer
- **Publisher:** nbluis
- **Engines:** Node: >=4
- **Integrity:** sha512-j5eeW6higxYNmXMIT8iHjsdiViTpQDthg7o+SHsRtqdbxscdHqBHXwrXjHC8hL3F0Tsu34ApUpDkwzMBPBsrLw==
- **Shasum:** 49e3cae2a001736b0ee9e95d21d3d843fc95efaa
- **Unpacked Size:** 29,410
- **File Count:** 0
- **Created At:** 2013-09-19T14:41:06.721Z
- **Latest Published At:** 2018-04-03T14:23:43.285Z
- **Modified At:** 2022-06-27T00:04:19.585Z

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

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


## 相关链接

- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched curated package taxonomy and local package facts.
- [serve](https://www.automicvault.com/zh-hans/pkg/npm/serve/) - Local metadata places this package in an adjacent workflow. Shared terms: chalk, directory, file, http, serve.
- [budo](https://www.automicvault.com/zh-hans/pkg/npm/budo/) - Local metadata places this package in an adjacent workflow. Shared terms: local, opn, serve, server, simple.
- [http-server](https://www.automicvault.com/zh-hans/pkg/npm/http-server/) - Local metadata places this package in an adjacent workflow. Shared terms: chalk, http, mime, server, simple.

## 来源

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