Amit Cohen
Amit Cohen

Reputation: 65

npm install cypress throws an error on node16

Since migrating from node14 to node16, cypress is not being installed on 'npm install' and throws an error:

enter image description here

i think iv tried everything from reinstalling node16 to using 'sudo npm install'

its solved by either switching to node14 OR erasing the cypress line from package.json, but i need node16+cypress.

my 'nvm ls':

enter image description here

this issue is related to is-installed-globally npm package and it won't let me install it as well

Upvotes: 1

Views: 3016

Answers (2)

Stephen Gissendaner
Stephen Gissendaner

Reputation: 11

For everyone who finds this in the future.

I was having the same trouble described above. The new version of cypress works with node 16.

  • node version 16.14.2
  • cypress.io version 10.0.3

Upvotes: 0

Fody
Fody

Reputation: 31904

It sounds like npm itself is out of alignment with node. Try updating with

npm update npm -g

then re-install Cypress

Upvotes: 1

Related Questions