Git Product home page Git Product logo

Comments (12)

rjatling avatar rjatling commented on August 17, 2024 1

Thanks Very Much Shane !
my node and npm were messed up. Removed both and reinstalled both.
Now everything works.

Really appreciate your help. Huge Thankyou !!!

from pact-demo.

rjatling avatar rjatling commented on August 17, 2024 1

yes, with docker-pact-postgres

On 17 August 2016 at 09:11, shane lee [email protected] wrote:

Not a problem mate. You test the publishing with my docker containers?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#4 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATcudfssDMdE3JtPvVQH2rCD6JWyBaLIks5qgkOZgaJpZM4JlCIN
.

************** PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING *************

******************* Confidentiality and Privilege Notice


This e-mail is intended only to be read or used by the addressee. It is
confidential and may contain legally privileged information. If you are not
the addressee indicated in this message (or responsible for delivery of the
message to such person), you may not copy or deliver this message to
anyone, and you should destroy this message and kindly notify the sender by
reply e-mail. Confidentiality and legal privilege are not waived or lost by
reason of mistaken delivery to you.

Qantas Airways Limited ABN 16 009 661 901

Visit Qantas online at http://qantas.com


from pact-demo.

shavo007 avatar shavo007 commented on August 17, 2024

Hi @rjatling ,

Whats the issue you get when running the test?

If you run gulp pact, it will generate the pact and publish to your local pact broker.

Verify that your node modules are correctly installed. I had an issue initially where the modules are not downloaded from the registry correctly.

from pact-demo.

rjatling avatar rjatling commented on August 17, 2024

Hi Shane,

Thanks for your quick reply. I am using eclipse IDE, I can see there are lots of error marks on the node Modules. However when i run gulp pact, it runs ok but doesn't generate pact files and neither does it publish in pact broker.

from pact-demo.

rjatling avatar rjatling commented on August 17, 2024

This is the first issue i encountered....below stacktrace

[15:40:07] Using gulpfile ~/Documents/Pact Workspace/pact_node_demo/jsConsumer/gulpfile.js
[15:40:07] Starting 'createPacts'...
[�[37m2016-08-16T05:40:12.958Z�[39m] �[35m WARN�[39m: [email protected]/5482 on admins-MacBook-Pro-3.local: �[36mPact exited with code 1.�[39m
�[31m16 08 2016 15:40:12.960:ERROR [karma]: �[39m{ [Error: kill ESRCH] code: 'ESRCH', errno: 'ESRCH', syscall: 'kill' }
Error: kill ESRCH
at exports._errnoException (util.js:873:11)
at process.kill (node.js:777:15)
at Server.stop (/Users/xxxxxxxx/Documents/Pact Workspace/pact_node_demo/jsConsumer/node_modules/@pact-foundation/pact-node/src/server.js:178:12)
at Server. (/Users/xxxxxxxx/Documents/Pact Workspace/pact_node_demo/jsConsumer/node_modules/@pact-foundation/pact-node/src/server.js:136:8)
at ChildProcess.g (events.js:260:16)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Socket. (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:486:12)
node.js:777
throw errnoException(err, 'kill');
^

Error: kill ESRCH
at exports.errnoException (util.js:873:11)
at process.kill (node.js:777:15)
at Server.stop (/Users/xxxxxxxx/Documents/Pact Workspace/pact_node_demo/jsConsumer/node_modules/@pact-foundation/pact-node/src/server.js:178:12)
at Server.delete (/Users/xxxxxxxx/Documents/Pact Workspace/pact_node_demo/jsConsumer/node_modules/@pact-foundation/pact-node/src/server.js:189:14)
at /Users/xxxxxxxx/Documents/Pact Workspace/pact_node_demo/jsConsumer/node_modules/@pact-foundation/pact-node/src/pact.js:55:23
at Function.
.map._.collect (/Users/xxxxxxxx/Documents/Pact Workspace/pact_node_demo/jsConsumer/node_modules/@pact-foundation/pact-node/node_modules/underscore/underscore.js:172:24)
at Object.removeAllServers (/Users/xxxxxxxx/Documents/Pact Workspace/pact_node_demo/jsConsumer/node_modules/@pact-foundation/pact-node/src/pact.js:54:17)
at shutdownPactServer (/Users/xxxxxxxx/Documents/Pact Workspace/pact_node_demo/jsConsumer/gulpfile.js:19:14)
at removeAllListeners (/Users/xxxxxxxx/Documents/Pact Workspace/pact_node_demo/jsConsumer/node_modules/karma/lib/server.js:379:7)
at /Users/xxxxxxxx/Documents/Pact Workspace/pact_node_demo/jsConsumer/node_modules/karma/lib/server.js:390:9
at Server. (net.js:1491:9)
at Server.g (events.js:260:16)
at emitNone (events.js:72:20)
at Server.emit (events.js:166:7)
at emitCloseNT (net.js:1537:8)
at nextTickCallbackWith1Arg (node.js:431:9)

from pact-demo.

shavo007 avatar shavo007 commented on August 17, 2024

Dont think the node modules installed correctly! You running on windows!?

from pact-demo.

rjatling avatar rjatling commented on August 17, 2024

Mac El Capitan 10.11.6

from pact-demo.

rjatling avatar rjatling commented on August 17, 2024

This is how it looks at the moment...Please see the attached screenshot of eclipse IDE

image

from pact-demo.

shavo007 avatar shavo007 commented on August 17, 2024

what version of node and npm you have?

my versions are:
v0.12.5
2.14.7

I would try to clean the modules npm cache clean and install again.

from pact-demo.

rjatling avatar rjatling commented on August 17, 2024

Node - 4.4.7
npm - 2.15.8
don't have nvm installed. I'll try with that.

from pact-demo.

shavo007 avatar shavo007 commented on August 17, 2024

So, I cloned this project again and the jsConsumer created the pact successfully.

This time I updated to the latest versions of node and npm. (You can use nvm to do this)

Versions are:
node --version && npm --version
v6.3.1
3.10.3

Steps were:
run npm install
npm install -g gulp
gulp createPacts

from pact-demo.

shavo007 avatar shavo007 commented on August 17, 2024

Not a problem mate. You test the publishing with my docker containers?

from pact-demo.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.