Giter Site home page Giter Site logo

Comments (5)

agreatfool avatar agreatfool commented on September 13, 2024

Previous version:

"dependencies": {
  "swagger-spec-to-pdf": "^1.0.3"
}

Update with:

npm update swagger-spec-to-pdf

New version shall be: [email protected]
And then have a try~

from swagger-spec-to-pdf.

dj1703 avatar dj1703 commented on September 13, 2024

Hello,

I'm having the same problem using the current version 1.0.4 of swagger2pdf. When running your tool I see the following output (using GitBash on a Windows 7 machine):

$ ./bin/swagger2pdf -s ./swagger-spec-sample.json -o ./dump/
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: spawn C:\Program Files\nodejs\node_modules\http-server\bin\http-server ENOENT
    at exports._errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:359:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

I'm using these version of npm and Node:

$ npm -v
3.10.10
$ node -v
v6.9.5

Any help would be most welcome.

from swagger-spec-to-pdf.

krishnakanike avatar krishnakanike commented on September 13, 2024

the above update to v1.0.4 did not work for me. So, i used another swagger.
here you go - https://github.com/simonstewart/swagger-to-PDF

from swagger-spec-to-pdf.

dj1703 avatar dj1703 commented on September 13, 2024

Thank you Scrooge2, the other project works like a charm!

from swagger-spec-to-pdf.

zleao avatar zleao commented on September 13, 2024

I´m running on windows 10 x64. When trying to execute, I have the same 'unhandled error event'
I´ve tried the on ein the link that @Scrooge2 mentioned, but the formatting is comming out wrong and I would like to try other converters to see if there's any difference. Do you have any ideia on how to solve this?
Thanks

$npm -v
v6.9.4

$npm -v
3.10.10

$node swagger2pdf -s ./test.json -o ./
events.js:160
throw er; // Unhandled 'error' event
^

Error: spawn C:\Users\perei\AppData\Roaming\npm\node_modules\swagger-spec-to-pdf\node_modules.bin\http-server ENOENT
at exports._errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)

from swagger-spec-to-pdf.

Related Issues (16)

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.