errors running `asciidoctorjs-pdf -v` on Win10 WSL node v10.15.0
See original GitHub issueAfter installing asciidoctor in a npm project with the following dependencies
"dependencies": {
"asciidoctor": "^2.0.3",
"asciidoctor-pdf": "^1.0.0-alpha.1",
"gulp-cli": "^2.2.0"
},
I get the following error
require undefined
template-require undefined
backend undefined
doctype article
header-footer true
section-numbers false
quiet false
verbose true
timings false
trace false
base-dir undefined
destination-dir undefined
verbose-mode 2
attributes
options {"doctype":"article","safe":"unsafe","header_footer":true,"verbose":2,"timings":false,"trace":false,"to_file":false,"attributes":[]}
asciidoctorjs-pdf [files...]
Options:
--help Show help [boolean]
--doctype, -d document type to use when converting document
[choices: "article", "book", "manpage", "inline"] [default: "article"]
--template-require require the specified template script [string]
--out-file, -o output file (default: based on path of input file) use '' to output to STDOUT [string]
--safe-mode, -S set safe mode level explicitly, disables potentially dangerous macros in source files, such as
include::[] [choices: "unsafe", "safe", "server", "secure"] [default: "unsafe"]
--no-header-footer, -s suppress output of header and footer [boolean] [default: false]
--section-numbers, -n auto-number section titles in the HTML backend disabled by default [boolean] [default: false]
--base-dir, -B base directory containing the document and resources (default: directory of source file)
[string]
--destination-dir, -D destination output directory (default: directory of source file) [string]
--quiet, -q suppress warnings [boolean] [default: false]
--trace include backtrace information on errors [boolean] [default: false]
--verbose, -v enable verbose mode [boolean] [default: false]
--timings, -t enable timings mode [boolean] [default: false]
--attribute, -a a document attribute to set in the form of key, key! or key=value pair [array]
--require, -r require the specified library before executing the processor, using the standard Node require
[array]
--watch, -w enable watch mode [boolean] [default: false]
--version, -V display the version and runtime environment (or -v if no other flags or arguments)
[boolean] [default: false]
when running node_modules/asciidoctor-pdf/bin/asciidoctorjs-pdf -v
.
Using --version
works fine 👍
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
npm/node does not work in the Windows Subsystem for Linux
Can't run NPM or Node as expected running "npm" give this error : not foundram ... WSL finds my global packages installed from...
Read more >Set up Node.js on WSL 2 - Windows - Microsoft Learn
A guide to help you get your Node.js development environment set up on Windows Subsystem for Linux (WSL).
Read more >In WSL2: Ubuntu 20.04 for Windows 10 nodejs is installed but ...
Solution for following error: -bash: /mnt/c/Program ... I thought my WSL containers were running under WSL2 (I upgraded the WSL kernel with ...
Read more >Build Node.JS apps with Windows Subsystem for Linux
Learn how to develop NodeJS apps using Linux on Windows with VS Code. ... Install and sign up links:Install WSL 2https://do...
Read more >[Guide] Developing on Windows 10 using WSL - general
The next step will be a proper installation of node.js and yarn. We will do this using nvm . curl -o- https://raw.githubusercontent.com/creationix/nvm ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Actually I think it’s already fixed on master: https://github.com/Mogztter/asciidoctor-pdf.js/blob/3ee47079489ec6b787386759786a48128d4485a7/lib/cli.js#L46-L51
I will release another alpha, stay tuned 😉
You are awesome!