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

Trying to upgrade from newer version "0.59.9" to older "0.59.10" #21

Closed
ManAnRuck opened this issue Jul 2, 2019 · 3 comments
Closed

Comments

@ManAnRuck
Copy link

Bug

when I run react-native upgrade I get the following error:

info No version passed. Fetching latest...
Trying to upgrade from newer version "0.59.9" to older "0.59.10"

Environment info

React native info output:

info 
  React Native Environment Info:
    System:
      OS: macOS 10.14.5
      CPU: (4) x64 Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
      Memory: 1.97 GB / 16.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 10.16.0 - ~/.nvm/versions/node/v10.16.0/bin/node
      Yarn: 1.16.0 - ~/.yarn/bin/yarn
      npm: 6.9.0 - ~/.nvm/versions/node/v10.16.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: 22, 23, 25, 26, 27, 28
        Build Tools: 23.0.1, 25.0.0, 25.0.1, 25.0.2, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.1, 27.0.3, 28.0.3
        System Images: android-26 | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 3.3 AI-182.5107.16.33.5199772
      Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3 
      react-native: 0.59.9 => 0.59.9

Library version: x.x.x

react-native-cli: 2.0.1
react-native: 0.59.9

Steps To Reproduce

  1. react-native upgrade

Describe what you expected to happen:

  1. upgrade to newest version
@thymikee
Copy link
Member

thymikee commented Jul 2, 2019

Thanks! Fixed in react-native-community/cli#455. Please upgrade the @react-native-community/cli to v1.9.12 (by removing it from lockfile and reinstalling)

@thymikee thymikee closed this as completed Jul 2, 2019
@alexiri
Copy link

alexiri commented Jul 2, 2019

@thymikee I just upgraded but this still looks broken for me:

> yarn global list
yarn global v1.16.0
info "@react-native-community/cli@1.9.12" has binaries:
   - react-native
info "react-native-asset@1.1.2" has binaries:
   - react-native-asset
info "react-native-cli@2.0.1" has binaries:
   - react-native
Done in 0.46s.
> react-native upgrade
info No version passed. Fetching latest...
error Trying to upgrade from newer version "0.59.5" to older "0.59.10"

@thymikee
Copy link
Member

thymikee commented Jul 2, 2019

@alexiri, this CLI is not supposed to be used as a global. It's a dependency of react-native package. Remove the global @react-native-community/cli, edit the lockfile and install again, then verify in if it resolved to the correct version in the lockfile

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

No branches or pull requests

3 participants