Skip to content
New issue

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

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

Already on GitHub? # to your account

./node_modules/mocha/bin/mocha: not found, mocha bin is now in ./node_modules/mocha/bin/_mocha #4880

Closed
alberto56 opened this issue May 3, 2022 · 4 comments
Labels
type: question support question

Comments

@alberto56
Copy link

Starting a few days ago, running:

npm install mocha 

Seems to install the mocha binary in ./node_modules/mocha/bin/_mocha

Previously it was in ./node_modules/mocha/bin/mocha

I could not find any reason for this. Is this by design?

@alberto56 alberto56 added the type: question support question label May 3, 2022
alberto56 added a commit to dcycle/docker-browsertesting that referenced this issue May 3, 2022
@juergba
Copy link
Contributor

juergba commented May 3, 2022

Before Mocha v10.0.0 we had bin/_mocha and bin/mocha executables.
With mocha@10.0.0 we have bin/_mocha and bin/mocha.js, so we have added an extension to one of the files. We have listed this topic as breaking change in our changelog with links explaining the reasons.

@tombrouwer
Copy link

tombrouwer commented May 4, 2022

Hi Alberto,

I noticed your issue. Maybe a strange question, but why don't you use node_modules/.bin/mocha?

Edit: I saw that I had written it in Dutch.

@alberto56
Copy link
Author

For reference, the changelog is in #4863, thanks for the response.

@tombrouwer I did not know about node_modules/.bin/mocha!

I will close this issue, thanks for the reply.

@chris-miner
Copy link

I noticed your issue. Maybe a strange question, but why don't you use node_modules/.bin/mocha?

Or how about npx mocha

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
type: question support question
Projects
None yet
Development

No branches or pull requests

4 participants