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

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

Open
cortinico opened this issue May 2, 2024 · 2 comments
Open
Labels

Comments

@cortinico
Copy link
Contributor

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
@cortinico
Copy link
Contributor Author

cc @byCedric

@github-actions github-actions bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels May 2, 2024

This comment was marked as off-topic.

@cortinico cortinico removed Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant