cli icon indicating copy to clipboard operation
cli copied to clipboard

chore: specify where to run `npx react-native info` for bug reports

Open mikehardy opened this issue 1 year ago • 1 comments

Summary:

the "info" command is not known to the react-native wrapper on npmjs.com so "info" only works if you run it from inside a directory where react-native is installed as a local package

This is what happens if you just run npx react-native info outside a project:

mike@isabela:~ % npx react-native info
npm WARN cli npm v10.2.4 does not support Node.js v18.15.0. This version of npm supports the following node versions: `^18.17.0 || >=20.5.0`. You can find the latest version at https://nodejs.org/.
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
error: unknown command 'info'
(Did you mean init?)

Test Plan:

Run it inside a working project with react-native installed, and it works

Checklist

  • [x] Documentation is up to date to reflect these changes.
  • [x] Follows commit message convention described in CONTRIBUTING.md

mikehardy avatar Feb 28 '24 17:02 mikehardy

Noticed this when attempting to log #2313

mikehardy avatar Feb 28 '24 17:02 mikehardy