Mermade / widdershins

OpenAPI / Swagger, AsyncAPI & Semoasa definitions to (re)Slate compatible markdown
https://mermade.github.io/reslate
MIT License
1.48k stars 321 forks source link

node can't find widdershins module after npm install is run #525

Open epugh opened 2 years ago

epugh commented 2 years ago

Describe the bug

➜ tempdir node widdershins openapi.json -o output.md node:internal/modules/cjs/loader:942 throw err; ^

Error: Cannot find module '/Users/epugh/Documents/projects/tempdir/widdershins' at Module._resolveFilename (node:internal/modules/cjs/loader:939:15) at Module._load (node:internal/modules/cjs/loader:780:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }

Node.js v18.0.0

This is after running npm install -g widdershins.

epugh commented 2 years ago

I finally cloned the repo and installed it via node -i and then I tried just ./widdershins and that works!

This is different from the example given at https://github.com/Mermade/widdershins#examples

OAkyildiz commented 1 year ago

Same here but the workaround above does not address the problem