yarn
yarn copied to clipboard
"Error: EBADF: bad file descriptor, read" when running "nohup yarn start"
Unable to run yarn start with nohup.
nohup yarn start &
Steps to Reproduce
- npx create-react-app my-app
- cd my-app
- nohup yarn start &
Environment
- Node Version:
v12.18.3
- Yarn v1 Version:
1.22.4
- OS and version: CentOS Linux release 8.2.2004 (Core)
Error:
Starting the development server...
events.js:292
throw er; // Unhandled 'error' event
^
Error: EBADF: bad file descriptor, read
Emitted 'error' event on ReadStream instance at:
at internal/fs/streams.js:191:14
at FSReqCallback.wrapper [as oncomplete] (fs.js:520:5) {
errno: -9,
code: 'EBADF',
syscall: 'read'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
https://stackoverflow.com/questions/16604176/error-ebadf-bad-file-descriptor-when-running-node-using-nohup-of-forever
See Idolphint's comment.