process.stdout.columns seems to be null!
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
What's going wrong?
It seems these 2 properties had not implemented when Running the Node app via PM2,
process.stdout.columns
process.stdout.rows
But running the app via Node, won't fail! Probably the type of process.stdout is different.
How could we reproduce this issue?
Just try to get the width & height of the terminal!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by running a Node app through PM2 and comparing process.stdout.columns and process.stdout.rows with the same app run directly via Node. Trace how PM2 launches and attaches the app's standard output; done means both terminal dimension properties are available with the expected values under PM2.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100