# 使用 npm 安装 mockttp

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

## 安装

```sh
sudo av install npm:mockttp
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g mockttp
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:mockttp
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/mockttp>
- **版本:** 4.4.2
- **来源摘要:** Mock HTTP server for testing HTTP clients and stubbing webservices
- **主页:** <https://github.com/httptoolkit/mockttp#readme>
- **仓库:** <https://github.com/httptoolkit/mockttp>
- **上游文档:** <https://github.com/httptoolkit/mockttp#readme>
- **许可证:** Apache-2.0
- **源码归档:** <https://registry.npmjs.org/mockttp/-/mockttp-4.4.2.tgz>
- **问题跟踪器:** <https://github.com/httptoolkit/mockttp/issues>
- **发布时间:** 2026-05-21T10:04:49.645Z
- **最后更新:** 2026-05-21T10:04:49.645Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- mockttp (cli)
- mockttp (别名)

## 依赖

- @graphql-tools/schema
- @graphql-tools/utils
- @httptoolkit/httpolyglot
- @httptoolkit/subscriptions-transport-ws
- @httptoolkit/util
- @httptoolkit/websocket-stream
- @peculiar/asn1-cms
- @peculiar/asn1-csr
- @peculiar/asn1-ecc
- @peculiar/asn1-pkcs8
- @peculiar/asn1-pkcs9
- @peculiar/asn1-rsa
- @peculiar/asn1-schema
- @peculiar/asn1-x509
- @peculiar/asn1-x509-attr
- @peculiar/x509
- @types/cors
- @types/node
- async-mutex
- base64-arraybuffer
- cacheable-lookup
- common-tags
- connect
- cors
- destroyable-server
- express
- fast-json-patch
- get-port
- graphql
- graphql-http
- graphql-subscriptions
- graphql-tag
- http-encoding
- http2-wrapper
- https-proxy-agent
- isomorphic-ws
- lodash
- lru-cache
- milliparsec
- native-duplexpair
- pac-proxy-agent
- parse-multipart-data
- read-tls-client-hello
- semver
- socks-proxy-agent
- urlpattern-polyfill
- ws

## 构建依赖

- @types/autocannon
- @types/base64-arraybuffer
- @types/chai
- @types/chai-as-promised
- @types/common-tags
- @types/connect
- @types/dns2
- @types/express
- @types/lodash
- @types/mocha
- @types/native-duplexpair
- @types/request
- @types/semver
- @types/source-map-support
- @types/ws
- assert
- autocannon
- browserify-zlib
- buffer
- catch-uncommitted
- chai
- chai-as-promised
- chai-fetch
- crypto-browserify
- dns2
- form-data-encoder
- formdata-node
- http-proxy-agent
- karma
- karma-chai
- karma-chrome-launcher
- karma-mocha
- karma-sourcemap-loader
- karma-spec-reporter
- karma-webpack
- mocha
- path-browserify
- process
- querystring-es3
- request
- request-promise-native
- rimraf
- socks
- source-map-support
- stream-browserify
- tmp
- tmp-promise
- ts-loader
- ts-node
- typedoc
- typescript
- undici
- url
- util
- webpack
- zlib-browserify

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 4.4.2
- 管理器更新时间: 2026-05-21
- 本地数据: OK
- 上游仓库: https://github.com/httptoolkit/mockttp
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 4.4.2
- **Version Count:** 145
- **Maintainers:** pimterry
- **Author:** Tim Perry
- **Publisher:** GitHub Actions
- **Engines:** Node: >=20.0.0
- **Integrity:** sha512-jHw/qCuzIReIVRDNK5geG17K7Xo0qlamRCCw5yI4ab8vQ1MGimOS9QU3u76bc0sLG1jQygjlcx421QkKOy0pfA==
- **Shasum:** 8132e8343fbf166ab623e529bde6d067ae9d4523
- **Unpacked Size:** 1,892,155
- **File Count:** 0
- **Created At:** 2016-08-09T04:36:01.775Z
- **Latest Published At:** 2026-05-21T10:04:49.645Z
- **Modified At:** 2026-05-21T10:04:49.909Z


## 相关链接

- [Web development packages](https://www.automicvault.com/zh-hans/pkg/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [snap-shot-core](https://www.automicvault.com/zh-hans/pkg/npm/snap-shot-core/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, common, common-tags, developer, developer-tools.
- [parse-server](https://www.automicvault.com/zh-hans/pkg/npm/parse-server/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, cors, developer, developer-tools, graphql.
- [mock-json-server](https://www.automicvault.com/zh-hans/pkg/npm/mock-json-server/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, cors, developer, developer-tools, mock.

## 来源

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