open-cli-tools / concurrently

Run commands concurrently. Like `npm run watch-js & npm run watch-less` but better.
https://www.npmjs.com/package/concurrently
MIT License
6.98k stars 227 forks source link

No commands recognized when using via API #469

Open lokimckay opened 5 months ago

lokimckay commented 5 months ago

Regular usage works as expected

bun install concurrently
bun concurrently "pwd" "whoami"

# produces:

[0] /c/dev
[1] loki-sff\loki
[1] whoami exited with code 0
[0] pwd exited with code 0

API usage does not work

bla.ts

const concurrently = require("concurrently");
concurrently(["pwd", "whoami"]);
bun install concurrently
bun bla.ts

# produces:

[0] '\"pwd\"' is not recognized as an internal or external command,
[0] operable program or batch file.
[0] pwd exited with code 1
[1] '\"whoami\"' is not recognized as an internal or external command,
[1] operable program or batch file.
[1] whoami exited with code 1
error

System info

OS: Windows 10 10.0.19045
CPU: (24) x64 AMD Ryzen 9 3900X 12-Core Processor
Memory: 8.37 GB / 15.93 GB

Bun version 1.1.0
"concurrently": "^8.2.2"
gustavohenke commented 5 months ago

Hey, I'd like to fix this, but I my Windows 11 VM "runs" on ARM 64, which won't install Bun (https://github.com/oven-sh/bun/issues/9824) 😕

If you like, you can start debugging around here to see which PATH your commands get. https://github.com/open-cli-tools/concurrently/blob/ffdcb12b3a2e7b7d650390bd41bd81f61ad588a1/src/command.ts#L154