Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
epugh opened this issue Aug 8, 2022 · 2 comments
Open

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

epugh opened this issue Aug 8, 2022 · 2 comments

Comments

@epugh
Copy link

epugh commented Aug 8, 2022

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
@epugh
Copy link
Author

epugh commented Aug 8, 2022

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
Copy link

Same here but the workaround above does not address the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants