Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--version prints nothing on RN 0.60 #711

Closed
draperunner opened this issue Sep 11, 2019 · 3 comments · Fixed by #713
Closed

--version prints nothing on RN 0.60 #711

draperunner opened this issue Sep 11, 2019 · 3 comments · Fixed by #713

Comments

@draperunner
Copy link
Contributor

Environment

System:
    OS: macOS 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
    Memory: 511.29 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 10.13.0 - ~/.nvm/versions/node/v10.13.0/bin/node
    Yarn: 1.12.3 - ~/.yarn/bin/yarn
    npm: 6.9.0 - ~/.nvm/versions/node/v10.13.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
    Android SDK:
      API Levels: 23, 25, 26, 27, 28
      Build Tools: 23.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.3, 28.0.2, 28.0.3
      System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom_64, android-25 | Google APIs Intel x86 Atom_64, android-25 | Google Play Intel x86 Atom, android-26 | Google APIs Intel x86 Atom_64, android-27 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
      Android NDK: 17.1.4828580
  IDEs:
    Android Studio: 3.2 AI-181.5540.7.32.5056338
    Xcode: 10.3/10G8 - /usr/bin/xcodebuild
  npmGlobalPackages:
    eslint-plugin-react-native-a11y: 1.2.0
    eslint-plugin-react-native: 3.6.0
    react-native-cli: 2.0.1
    react-native-git-upgrade: 0.2.7
    react-native: 0.60.5

Description

react-native --version simply prints nothing. I expected it to print the version of the CLI, as stated in react-native --help.

Reproducible Demo

  1. In a RN v0.60.5 project:
node_modules/.bin/react-native --version

The output is only warnings of the type "The following packages use deprecated "rnpm" config that will stop working from next release". No version number.

  1. Using npx
npx react-native --version

No output at all!

image

@draperunner draperunner changed the title --version prints nothing on RN 0.60.5 --version prints nothing on RN 0.60 Sep 11, 2019
@thymikee
Copy link
Member

Seems like a bug. Maybe you'd like to contribute a fix? :)

@draperunner
Copy link
Contributor Author

I'll try!

@draperunner
Copy link
Contributor Author

The issue is due to a naming conflict with built-in commander methods. tj/commander.js#1020

I have submitted a PR now: #713

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants