Unitech / Unitech/pm2

process.stdout.columns seems to be null!

Open
#5,558 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.