cli thinks 0.59.8 is newer than 0.59.10

Created on 10 Jul 2019  路  5Comments  路  Source: react-native-community/cli

Environment

info 
  React Native Environment Info:
    System:
      OS: macOS 10.14.5
      CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
      Memory: 1.37 GB / 16.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 11.9.0 - ~/.nodenv/versions/11.9.0/bin/node
      Yarn: 1.16.0 - /usr/local/bin/yarn
      npm: 6.5.0 - ~/.nodenv/versions/11.9.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
      Android SDK:
        API Levels: 21, 25, 26, 27, 28
        Build Tools: 27.0.3, 28.0.2, 28.0.3
        System Images: android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-Q | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 3.3 AI-182.5107.16.33.5314842
      Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3 
      react-native: git+ssh://[email protected]/senseobservationsystems/react-native.git#0.59.8-crash-heaven-release => 0.59.8 

I made sure I have the latest. from react-native -v:

react-native-cli: 2.0.1
react-native: 0.59.8

Description

I ran react-native upgrade in a repo using a forked RN. This is what I got.
error Trying to upgrade from newer version "0.59.8" to older "0.59.10"

Reproducible Demo

bug

All 5 comments

Please update the @react-native-community/cli to the latest version, it's fixed there.

I just edited.

react-native -v
react-native-cli: 2.0.1
react-native: 0.59.8

oh oops.. interesting. not the latest. trying again.

I still had react-native-cli, instead of @react-native-community/cli. Thanks and sorry :D

Yea, I advise to uninstall the global react-native-cli, it's not necessary anymore.

Was this page helpful?
0 / 5 - 0 ratings