Yarn: Concurrently is not working as expected in yarn

Created on 23 Jan 2017  路  4Comments  路  Source: yarnpkg/yarn

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.

needs-confirmation

Most helpful comment

@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\"

All 4 comments

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>?

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

@torifat can you please update me with this issue.

@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\"
Was this page helpful?
0 / 5 - 0 ratings