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_modules/vuepress-jsdoc/node_modules/.bin/vue-docgen: not found #44

Closed
diegoazh opened this issue Aug 22, 2021 · 7 comments
Closed
Labels
bug Something isn't working

Comments

@diegoazh
Copy link

diegoazh commented Aug 22, 2021

Describe the bug
I found the above error in the last version, for some reason vue-docgen-api is not installed inside of the node_modules of the vuepress-jsdoc, I'm not sure why but when it try to use it to generate the docs in line 145 of cmds/index.js it isn't there.
I add prints to the modules inside of the node_modules in vuepress-jsdoc and the nodeModulesPath and rootProjectFolder variables in the first and second screenshots in the last screenshot you can see the error .../.bin/vue-docgen module not found.

Screenshot from 2021-08-22 17-24-25
Screenshot from 2021-08-22 17-26-09
Screenshot from 2021-08-22 17-40-39

To Reproduce
Steps to reproduce the behavior:
install vuepress-jsdoc and run the command to generate the documentation.

Expected behavior
Works in the same way as version 3.2.0 worked.

Node (please complete the following information):

  • Node-Version: 14.17.1

Additional context
I had installed vue-docgen-api and vue-docgen-cli in my devDependencies but, I remove them from my devDependencies and I made a fresh install with a new package-lock.json generated and the error is still happening.

@diegoazh
Copy link
Author

diegoazh commented Aug 22, 2021

I think maybe you should find the executable on the node_modules of vuepress-jsdoc and if it doesn't found the executable found in node_modules of the main repository because in my case even removing it from my devDependencies when I make an install vue-docgen-cli is installed inside the root node_modules instead of the vuepress-jsdoc node_modules as you can see in the following image

Screenshot from 2021-08-22 18-38-12

@ph1p ph1p added the bug Something isn't working label Aug 22, 2021
@ph1p
Copy link
Owner

ph1p commented Aug 22, 2021

Thanks for reporting. It would be nice, if you can attach a zip or something else, with a minimal reproduceable example.

@diegoazh
Copy link
Author

diegoazh commented Aug 29, 2021

Hi @ph1p sorry for my delay I was very busy these days, here is the repository https://github.com/diegoazh/vuepress-jsdoc-issue, use the script npm run gen:api:docs

@ph1p ph1p closed this as completed in 5e7ba4a Aug 30, 2021
@ph1p
Copy link
Owner

ph1p commented Aug 30, 2021

Thank you! Now it should work. I also dropped 3 dependencies. Version 3.7.1.

@diegoazh
Copy link
Author

diegoazh commented Sep 9, 2021

Excellent, thank you @ph1p I will test it this weekend.

@ph1p
Copy link
Owner

ph1p commented Sep 9, 2021

@diegoazh In the meantime I have rewritten a lot :D It would be great if you could check if 4.0.4 works too.

@diegoazh
Copy link
Author

diegoazh commented Sep 9, 2021

@ph1p, yes I installed the last version and it works like a charm, thank you so much for the effort 🎊 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants