concurrently: 8.2.1
node: v16.17.0
I use the following script to run concurrent processes:
const fs = require('fs')
const path = require('path')
const concurrently = require('concurrently')
const workspacePaths = JSON.parse(fs.readFileSync('./package.json')).workspaces
const { result } = concurrently(
workspacePaths.map((wp) => ({
command: 'npm:dev',
name: path.basename(wp),
cwd: path.resolve(__dirname, '../', wp),
})),
{
prefix: 'name',
killOthers: ['failure', 'success'],
restartTries: 0,
prefixColors: 'auto',
}
)
result.then(
() => {
console.log('Success')
},
() => {
console.log('Failed')
}
)
However, when I run in the terminal, it doesn't show any colors in the prefixes:

yet other colors are displayed. What could be the problem?
Thanks in advance.