microsoft / microsoft/react-native-windows

Garbled output using `react-native-windows-init` with npm

Open
#8,800 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area: CLI Area: Developer Experience enhancement Workstream: Developer Experience
Dominant language
C++
Stars
17.3k
Forks
1.2k
Avg merge
1d 13h
Merged PRs (30d)
33

Description

In init script we call execSync('npm ...'). This API will forward any stderr (and maybe stdwarn) output from the called app. Npm emits peer dependency warnings to this output stream, so it appears in our app as well, and creates jumbled output.

image

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

Start by locating the init script and the execSync('npm ...') call described in the issue. Reproduce the command with npm peer-dependency warnings and verify that the init output is no longer forwarded in a jumbled form.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, react-native
Domain
cli, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.