forked from filamentgroup/glyphhanger
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
I'm trying to run glyphhanger console command with child_process exec function and it hangs and the process never ends. But with execSync it works
This works
execSync(
`npx glyphhanger --subset=*.ttf --formats=woff2,woff --output=.`
)But this doesn't
exec(`npx glyphhanger --subset=*.ttf --formats=woff2,woff --output=.`, (error, stdout, stderr) => {
if (error) {
console.error(`Error: ${error.message}`)
return
}
if (stderr) {
console.error(`stderr: ${stderr}`)
return
}
console.log(`stdout:\n${stdout}`)
})Had to resort to spawn with these options
{
shell: true,
stdio: 'inherit'
}Maybe it has something to do with Python libraries?
Metadata
Metadata
Assignees
Labels
No labels