Leaflet / Leafdoc

A lightweight NaturalDocs-like LeafletJS-style documentation generator
54 stars 19 forks source link

env: js: No such file or directory #41

Closed trusktr closed 5 years ago

trusktr commented 5 years ago

I'm trying to run leafdoc cli, and I get an error env: js: No such file or directory:

❯ npx leafdoc
env: js: No such file or directory

❯ npx leafdoc -h
env: js: No such file or directory

❯ npx leafdoc -t node_modules/leafdoc/templates/basic -o documentation.html src/**/*.ts
env: js: No such file or directory

Any idea about the error?

I must be a bad luck magnet with doc tools: every doc tool I try has some issue preventing me from getting started!

trusktr commented 5 years ago

Oh, it's because src/cli.js begins with #!/usr/bin/env js. Um, shouldn't that be #!/usr/bin/env node? 😄

trusktr commented 5 years ago

Huh, well, now it looks like Node 12 breaks things: https://github.com/gulpjs/gulp/issues/2324

❯ npx leafdoc -t node_modules/leafdoc/templates/basic -o documentation.html src/**/*.ts
primordials is not defined
trusktr commented 5 years ago

Got around the primordials is not defined problem by running

npm i -g n
sudo n 11

to downgrade to Node 11.