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

How to get mocha in the search path of mocha-ui #2

Closed
lanwin opened this issue Nov 5, 2015 · 6 comments
Closed

How to get mocha in the search path of mocha-ui #2

lanwin opened this issue Nov 5, 2015 · 6 comments

Comments

@lanwin
Copy link

lanwin commented Nov 5, 2015

When I open "mocha-ui" I get the following error: "sh: mocha: command not found". I think the problem is that mocha is not in the search path of mocha-ui. The question is how to get it there? Sidenote: I use node and mocha with NVM.

@paulpflug
Copy link
Owner

npm install -g mocha

"should" work. Nvm should have the global dir added to PATH. If it doesn't,
you have to add it manually..

Am 5. November 2015 08:13:16 schrieb Steve Wagner notifications@github.com:

When I open "mocha-ui" I get the following error: "sh: mocha: command not
found". I think the problem is that mocha is not in the search path of
mocha-ui. The question is how to get it there? Sidenote: I use node and
mocha with NVM.


Reply to this email directly or view it on GitHub:
#2

@lanwin
Copy link
Author

lanwin commented Nov 5, 2015

Hmm, it dose not. I already did "npm install -g mocha" and can run mocha directly in iTerm2. I get this error even when I run atom via "atom ." from my test directory.

@paulpflug
Copy link
Owner

hey,
should be fixed with 0.1.6. Sorry it took so long.

@lanwin
Copy link
Author

lanwin commented Dec 14, 2015

works! Thanks very much.

@lanwin lanwin closed this as completed Dec 14, 2015
@lanwin
Copy link
Author

lanwin commented Dec 14, 2015

Btw: Wouldn't it to prefer the mocha from local node_modules/.bin if available?

paulpflug added a commit that referenced this issue Jan 23, 2016
@paulpflug
Copy link
Owner

Hi again ;)

it is done, should use the local mocha with full path, so no PATH is needed. But keeps the global mocha as a fallback
(Only works on the first project folder, though)

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