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

Concurrently is not working as expected in yarn #2531

Closed
madhankumar028 opened this issue Jan 23, 2017 · 4 comments
Closed

Concurrently is not working as expected in yarn #2531

madhankumar028 opened this issue Jan 23, 2017 · 4 comments

Comments

@madhankumar028
Copy link

madhankumar028 commented Jan 23, 2017

concurrently is not working as expected.

command "concurrently -k \"yarn run db\" \"yarn run dev\""

The expected behaviour is to start both the json-server and llite-server. If I use npm instead of yarn , concurrently module is working as expected.

I am using node js v6.0.0, 'yarn v0.19.1' and windows 7.

@torifat
Copy link
Member

torifat commented Jan 23, 2017

You meant concurrently package?

Your problem is not clear. Did you mean it's working for you if you use npm run <command> and doesn't when yarn run <command>?

@madhankumar028
Copy link
Author

"start": "concurrently -k \"yarn run db\" \"yarn run dev\"" command is not working, when I replace the yarn with npm, its working as expected.

@madhankumar028
Copy link
Author

@torifat can you please update me with this issue.

@coreyleelarson
Copy link

coreyleelarson commented Apr 25, 2017

@madhankumar028 We had similar issues. We found that using the -r flag to pipe in the raw terminal output on concurrently solved these issues. Yarn must be doing something special with child processes behind the scenes that conflicts with how concurrently handles its child processes. Unfortunate, but that worked for us for now.

Try that out.

concurrently -r -k \"yarn run db\" \"yarn run dev\"

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

No branches or pull requests

3 participants