happo / happo-cypress

A Happo integration with Cypress.io
35 stars 4 forks source link

`npx happo-cypress` returns an error: Cannot find module 'happo.io/build/makeRequest' #47

Closed snickell closed 3 years ago

snickell commented 3 years ago

On a few systems I've tried (one OSX, two linux, all recent-ish but not super recent node versions) npx happo-cypress appears to no longer work. It could perhaps be a stale package somewhere in my stack, but reporting in case others can reproduce this.

When I run npx happo-cypress on all three systems I get:

➜  deploy git:(master) ✗ npx happo-cypress
npx: installed 74 in 7.45s
Cannot find module 'happo.io/build/makeRequest'
Require stack:
- /Users/seth/.npm/_npx/22990/lib/node_modules/happo-cypress/bin/happo-cypress.js
snickell commented 3 years ago

There it is :-) Old version of happo.io installed globally, not compatible with happo-cypress latest.

trotzig commented 3 years ago

Glad you figured it out!