Skip to content

[0.74] npx react-native init should warn users but it's currently not #44386

Description

@cortinico

Description

As per RFC0759:

Users on 0.74 should start seeing a warning when they run npx react-native init.
This was implemented on:

It seems like this warning is actually not working properly.

Steps to reproduce

  1. Run npx react-native@latest init RN074 --skip-install
  2. Observe that the warning is not emitted

React Native Version

0.74.0

Affected Platforms

Build - MacOS, Build - Windows, Build - Linux

Output of npx react-native info

Not relevant.

Stacktrace or Logs

Here the output of the log:
$ npx react-native@latest init RN074 --skip-install
###### ######
### #### #### ###
## ### ### ##
## #### ##
## #### ##
## ## ## ##
## ### ### ##
## ######################## ##
###### ### ### ######
### ## ## ## ## ###
### ## ### #### ### ## ###
## #### ######## #### ##
## ### ########## ### ##
## #### ######## #### ##
### ## ### #### ### ## ###
### ## ## ## ## ###
###### ### ### ######
## ######################## ##
## ### ### ##
## ## ## ##
## #### ##
## #### ##
## ### ### ##
### #### #### ###
###### ######
Welcome to React Native!
Learn once, write anywhere
✔ Downloading template
✔ Copying template
Resolving 1.22.22 to a url...
error https://api.github.com/repos/yarnpkg/yarn/releases: API rate limit exceeded for 163.114.131.66. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
yarn config v1.22.22
success Set "nodeLinker" to "node-modules".
✨ Done in 0.02s.
✔ Processing template
✔ Dependencies installation skipped
info 💡 To enable automatic CocoaPods installation when building for iOS you can create react-native.config.js with automaticPodsInstallation field.
For more details, see https://github.com/react-native-community/cli/blob/main/docs/projects.md#projectiosautomaticpodsinstallation
✔ Initializing Git repository
Run instructions for Android:
• Have an Android emulator running (quickest way to get started), or a device connected.
• cd "/private/tmp/RN074" && npx react-native run-android
Run instructions for iOS:
• cd "/private/tmp/RN074/ios"
• Install Cocoapods
• bundle install # you need to run this only once in your project.
• bundle exec pod install
• cd ..
• npx react-native run-ios
- or -
• Open RN074/ios/RN074.xcodeproj in Xcode or run "xed -b ios"
• Hit the Run button
Run instructions for macOS:
• See https://aka.ms/ReactNativeGuideMacOS for the latest up-to-date instructions.

### Reproducer
N/A
### Screenshots and Videos
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: FixedA PR that fixes this issue has been merged.StaleThere has been a lack of activity on this issue and it may be closed soon.💻CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions