# Install msw with npm

Seamless REST/GraphQL API mocking library for browser and Node.js. Version 2.14.6 via npm; verified 2026-05-11.

## Install

```sh
sudo av install npm:msw
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g msw
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:msw
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/msw>
- **Version:** 2.14.6
- **Source summary:** Seamless REST/GraphQL API mocking library for browser and Node.js.
- **Homepage:** <https://mswjs.io>
- **Repository:** <https://github.com/mswjs/msw>
- **Upstream docs:** <https://mswjs.io>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/msw/-/msw-2.14.6.tgz>
- **Issue tracker:** <https://github.com/mswjs/msw/issues>
- **Published:** 2026-05-11T09:41:46.655Z
- **Last updated:** 2026-05-11T09:41:46.655Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- msw (cli)
- msw (alias)

## Dependencies

- @inquirer/confirm
- @mswjs/interceptors
- @open-draft/deferred-promise
- @types/statuses
- cookie
- graphql
- headers-polyfill
- is-node-process
- outvariant
- path-to-regexp
- picocolors
- rettime
- statuses
- strict-event-emitter
- tough-cookie
- type-fest
- until-async
- yargs

## Build dependencies

- @commitlint/cli
- @commitlint/config-conventional
- @epic-web/test-server
- @fastify/websocket
- @graphql-typed-document-node/core
- @open-draft/test-server
- @ossjs/release
- @playwright/test
- @types/express
- @types/json-bigint
- @types/node
- @types/serviceworker
- @web/dev-server
- axios
- babel-minify
- commitizen
- cross-env
- cross-fetch
- cz-conventional-changelog
- esbuild
- esbuild-loader
- express
- fastify
- fs-teardown
- glob
- jsdom
- json-bigint
- knip
- lint-staged
- msw
- oxlint
- page-with
- prettier
- publint
- regenerator-runtime
- rimraf
- simple-git-hooks
- tsup
- typescript
- undici
- url-loader
- vitest
- vitest-environment-miniflare
- webpack
- webpack-http-server

## Install behavior

- Post-install hook: defined
- Lifecycle scripts: postinstall
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.14.6
- Package-manager updated: 2026-05-11
- Local data: ok
- Upstream repository: https://github.com/mswjs/msw
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for msw. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Backport: 1.3.5, Beta: 0.0.0-fetch.rc-4, Latest: 2.14.6, Next: 2.3.0-ws.rc-12
- **Version Count:** 335
- **Maintainers:** kettanaito
- **Author:** Artem Zakharchenko
- **Publisher:** GitHub Actions
- **Engines:** Node: >=18
- **Peer Dependencies:** typescript
- **Funding:** <https://github.com/sponsors/mswjs>
- **Integrity:** sha512-ALe+N10S72cyx94cMcy3Zs4HhXCj35sgeAL4c+WTvKi0zWnbd8/h0lcFqv0mb2P+aSgAdD7p9HzvA0DiUPxsyg==
- **Shasum:** d30fa6ce8ec3299c6d9bf644cee3a5cc3c3f1197
- **Unpacked Size:** 5,594,634
- **File Count:** 0
- **Created At:** 2018-11-18T22:25:58.733Z
- **Latest Published At:** 2026-05-11T09:41:46.655Z
- **Modified At:** 2026-05-11T09:41:46.935Z


## Related links

- [Web development packages](https://www.automicvault.com/pkg/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [msw-auto-mock](https://www.automicvault.com/pkg/npm/msw-auto-mock/) - Package names and metadata indicate a similar tool family. Shared terms: api, api-mocking, cli, developer, developer-tools.
- [appium](https://www.automicvault.com/pkg/npm/appium/) - Local package facts share a topical domain. Shared terms: browser, cli, developer, developer-tools, fest.
- [promptfoo](https://www.automicvault.com/pkg/npm/promptfoo/) - Both packages touch the same language runtime or ecosystem. Shared terms: api, async, cli, confirm, developer.

## Sources

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