Comments (5)
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.
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.
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.
Thank you Scrooge2, the other project works like a charm!
from swagger-spec-to-pdf.
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)
- unhandled error HOT 5
- Use yaml file as source instead of JSON HOT 1
- All pdf files generated with same name HOT 1
- Not intended Button and Text HOT 1
- Stalled conversion from yaml to pdf HOT 2
- libFs.copyFileSync is not a function HOT 4
- Conversion does not seem to be working! HOT 1
- Support for openapi spec 3.0 ? HOT 3
- Failed in executing electron script.http-server stopped. HOT 1
- runtime error HOT 3
- throw er; // Unhandled 'error' event (on v1.0.5) HOT 1
- throw er; // Unhandled 'error' event (on v1.0.7) HOT 6
- Unhandled 'error' event HOT 6
- Install error on osx HOT 1
- Install error on Ubuntu 16.04 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swagger-spec-to-pdf.