We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
exec
execSync
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
spawn
{ shell: true, stdio: 'inherit' }
Maybe it has something to do with Python libraries?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to run glyphhanger console command with child_process
exec
function and it hangs and the process never ends. But withexecSync
it worksThis works
But this doesn't
Had to resort to
spawn
with these optionsMaybe it has something to do with Python libraries?
The text was updated successfully, but these errors were encountered: