-1

I'm trying to set up the MSW CLI (https://mswjs.io/docs/getting-started/integrate/browser) and I'm getting this error below:

throw Error(`yargs parser supports a minimum Node.js version of ${minNodeVersion}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);

Could someone help me with that?

"yarn": "^1.22.19",

"msw": "^1.2.3",

"vite": "^4.4.9"

"node": v18.17.1

  • Install n (https://www.npmjs.com/package/n) and check with different node versions if it works (I'm guessing 16, 18, etc). Also the "node" version in your `package.json` isn't necessarily the same as the node version installed on your machine (check with `node -v`, I'm running `v16.19.0`). – CoderApprentice Aug 24 '23 at 08:41

0 Answers0