You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
A lifecycle script run by yarn might hang on Windows if the script accesses process.stdin.
If the current behavior is a bug, please provide the steps to reproduce.
Let's consider the example project:
// starter.jsconstexec=require('child_process').exec;varyarn=exec('yarn run app');yarn.stdout.on('data',function(data){process.stdout.write('yarn: '+data);});yarn.stderr.on('data',function(data){process.stdout.write('yarn: '+data);});yarn.on('close',function(code){process.stdout.write('yarn process finished with exit code '+code);});
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
A lifecycle script run by yarn might hang on Windows if the script accesses process.stdin.
If the current behavior is a bug, please provide the steps to reproduce.
Let's consider the example project:
Sometimes running
node starter.js
in cmd.exe results in printing these lines and hangingWhat is the expected behavior?
node starter.js
should print these lines and exitPlease mention your node.js, yarn and operating system version.
yarn 0.18.1, 0.19.0
node 7.4.0
OS Windows 10
Though it's a node.js bug (nodejs/node#10836), it'd be nice if yarn could omit accessing
process.stdin
entirely when running any lifecycle script. That would fix this issue as well. Currently,process.stdin
is accessed inlib/reporters/base-reporter.js
(https://github.com/yarnpkg/yarn/blob/v0.20.0-0/src/reporters/base-reporter.js#L55), but not used afterwards.The text was updated successfully, but these errors were encountered: