react-native-init icon indicating copy to clipboard operation
react-native-init copied to clipboard

npmjs.com version is outdated

Open Dalamar opened this issue 5 years ago • 4 comments

Hi!

According to the current state of the application, it supports RN up to 0.58.99. However, if I install the latest version via npm, like so npm install -g react-native-cli@latest react-native-init@latest

and then try to init project based on RN 0.57.0 it tells me: The supported react-native version is between 0.55.4 and 0.56.0

Looks like you haven't publish latest changes to npmjs. When do you plan to do so?

Dalamar avatar Feb 14 '19 08:02 Dalamar

Hi @Dalamar , thank you for using this tool to build your react-native app. I have pushed a new version 0.58.10 to npmjs.com. You can update it now.

You'd better to read README.md file again, because it's very different from old version.

fwh1990 avatar Feb 15 '19 07:02 fwh1990

Hi!

Looks like there is a typo in maps.ts as it states "minRnVersion": "0.58.0" As the result, it's not possible to init project based on RN less than 0.58, i.e. 0.57 react-native-init MyProject --version=0.57.0 Fetching latest react-native version between 0.58.0 and 0.58.99...

Dalamar avatar Feb 15 '19 10:02 Dalamar

latest version fails on init

> react-native-init MyProject
Fetching latest react-native version between 0.58.0 and 0.58.99...
Unable to fetch react-native version: Unexpected token  in JSON at position 2

Dalamar avatar Feb 15 '19 10:02 Dalamar

So, I should push version as 0.57.* to npmjs.com

fwh1990 avatar Feb 15 '19 11:02 fwh1990