I'm seeing an error when attempting to install the latest cypress on my Windows 10 machine. I was using cypress 8.7 just fine. I deleted node_modules and package-lock.json and removed "cypress": "^8.7.0", from package.json.
Now installing cypress (9.1) I see this error:
npm install --save-dev cypress
npm ERR! Error: Cannot find module 'har-validator'
I see the same error when trying to use the old version too
npm install --save-dev [email protected]
System info from powershell:
node -v
> v16.8.0
npm -v
> 7.21.0
UPDATE:
- My friend is able to install with dependency 8.7.0 in package.json, on OSX with nodejs
14.16.0. - This works today (2021-11-26) for me
npm install --save-dev [email protected]
There is a Bug in @cypress/request. Take a look at https://github.com/cypress-io/request/pull/15
EDIT: There is a PR from one of the devs. https://github.com/cypress-io/request/pull/16