Closed j2l closed 3 years ago
+1 Same issue here on Mac OS X. Solution for me was to add the -g flag to npm install command.
With -g, it still doesn't work for me on Win10
Yeah the only thing that worked for me is going into the node_module of react-doc-generator itself and running react-doc-generator {src} -o "DOC".md and i'm on the latest macOS
Had the same issue then I installed the module with -g and it worked as expected
Try running react-doc-generator with
npm run react-doc-generator
or
yarn react-doc-generator
If this doesnt work, there's a dirty solution, add:
"react-doc-generator": "node_modules/react-doc-generator/dist/react-doc-generator.js"
to your scrips in the package.json file.
https://github.com/CezaryDanielNowak/react-doc-generator Please checkout this, works on Windows and has several improvements.
Thanks. Meanwhile I switched to svelte.
npm install -save-dev react-doc-generator
then:
npm run react-doc-generator src -o DOCUMENTATION.md