2022-06-08
1385
#node
Oluwasegun Kayode
113932
Jun 8, 2022 ⋅ 4 min read

Using stdout, stdin, and stderr in Node.js

Oluwasegun Kayode I love every technology and the solution it provides.

Recent posts:

Exploring The Magic Of Runes In Svelte 5

Exploring the magic of runes in Svelte 5

See how to use Svelte 5’s new runes system to declare reactive states and compare them to the existing approach to reactivity in Svelte 4.

Yashodhan Joshi
Jul 11, 2024 ⋅ 7 min read
Building UIs With Franken UI, A Shadcn Alternative

Building UIs with Franken UI, a Shadcn alternative

Explore Franken UI, an open source library of pre-built UI components that takes inspiration from Shadcn UI’s design principles.

Jude Miracle
Jul 10, 2024 ⋅ 11 min read
Working With The Angular Tree: Flat Vs Nested Trees And More

Working with the Angular tree: Flat vs. nested trees and more

The Angular tree view can be hard to get right, but once you understand it, it can be quite a powerful visual representation.

Lewis Cianci
Jul 9, 2024 ⋅ 20 min read
The Top Headless Ecommerce Solutions For Frontend Dev

The top headless ecommerce solutions for frontend dev

Explore the top headless commerce platforms tailored for frontend ecommerce development, with free and paid options like Saleor and Shopify.

Fimber Elemuwa
Jul 9, 2024 ⋅ 6 min read
View all posts

4 Replies to "Using <code>stdout</code>, <code>stdin</code>, and <code>stderr</code> in Node.js"

  1. Great article. Thanks. I’m by no means an expert, but re: your comment “It is pretty straightforward to understand why stdin and stdout exist. However, stderr seems pretty odd.” and very much in keeping with your explanation, stdout and stderr are separate channels and may, for example, be separately redirected to two different files. So stderr is sometimes very useful for that purpose, etc.

  2. I came across this while searching about an error that occured while running my react projects. The error occurs while running build command on our project using git bash. Following is the error: > @mo/[email protected] prepare
    > npm run build:dist

    npm ERR! Cannot read properties of undefined (reading ‘stdin’)

    npm ERR! A complete log of this run can be found in: C:\Users\Firmusoft\AppData\
    Local\npm-cache\_logs\2023-10-12T04_41_27_328Z-debug-0.log

    Does anyone have an idea about this?. I have uninstalled and reinstalled Node and npm and have also removed package-lock.json and cleared npm cache, but still the error persists.
    My Node version is 20.2.0 and npm version is 9.6.6 .

    Thanks!!

Leave a Reply