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
7k stars 228 forks source link

Command `node` not run in Windows (PowerShell and Cmd) #429

Closed ilixindri closed 1 year ago

ilixindri commented 1 year ago
> concurrently 'node prisma/seeds/userSeed.js'
[0] ...
[0] ...
[0] 'node exited with code 1

Node v20.3.1 AND Node v18.16.1 Node v16.16.0 is in error

paescuj commented 1 year ago

Try with concurrently "node prisma/seeds/userSeed.js" as single quotes are not supported on Windows. See also the examples under https://github.com/open-cli-tools/concurrently#usage.

ilixindri commented 1 year ago

I tested and not run!

paescuj commented 1 year ago

What's the error message?

gustavohenke commented 1 year ago

Are you using regular command prompt? I briefly remember that Windows doesn't support single quotes to wrap command line arguments: https://superuser.com/q/324278/200254

I wouldn't be surprised if this still is the case nowadays.