widdershins
widdershins copied to clipboard
node can't find widdershins module after npm install is run
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
.
- [X ] - I have checked that my input document is valid OpenAPI 2.0/3.0.x or AsyncAPI 1.x
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
Same here but the workaround above does not address the problem