DiUS / pact-workshop-js-v1

Original Example JS project for the Pact workshop
Apache License 2.0
95 stars 42 forks source link

Cannot find module @pact-foundation/pact-node #1

Closed hemantp2001 closed 5 years ago

hemantp2001 commented 7 years ago

I thought this issue was fixed. As in another post I see its already added as a direct dependency:

When I fire npm run "test:pact:consumer" I am getting below error:

Error: Cannot find module '@pact-foundation/pact-node' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (C:\Users\userid\pact-workshop-js\node_modules\pact\sr c\dsl\verifier.js:8:24) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32)

mefellows commented 5 years ago

This should be fixed in the latest edition, as it's a dependency in the root package. Please re-test, and let us know if you're still having any issues.