Install Mock Service Worker (MSW)

Share this video with your friends

Social Share Links

Send Tweet

Add MSW as a dependency to your project. In this course we'll be using pnpm but you can use a package manager of your choice.

pnpm install msw

[00:00] Let's start by adding MSW as a dependency in your project. Open the terminal and use your package manager to install MSW. I'm using pmpm, so for me it will be pmpm install msw. You can see that the package has been installed and can continue.