Closed m2mathew closed 9 months ago
I believe your homebrew and the packages are installed in the wrong directories. I've attached a link to an article that might be helpful for you to understand the situation.
I believe your homebrew and the packages are installed in the wrong directories. I've attached a link to an article that might be helpful for you to understand the situation.
@gagtic Thanks for that. I have homebrew installed in the correct place according to the docs and that article. I included this information in my original issue description.
Brew information Running which brew shows this in my terminal:
/opt/homebrew/bin/brew
This makes sense for an Apple Silicon installation.
Try the cmd under a rosetta terminal
Closing due to inactivity. Let me know if it's still happening.
Background
I'm moving an existing react-native project from a x86 machine to a machine with the M1 Apple Silicon chip. All works fine on the x86 machine.
The Issue
On a M1 MacBook Pro, I see the following error message in the terminal (also pictured below) when I run
react-native-clean-project
and select "Y" on all options:Other useful info
npx react-native-clean-project
.brew upgrade
orbrew update
outside of thereact-native-clean-project
commands works as expected.Expected Behavior
Run all commands to their end using commands that work with Apple Silicon.
Brew information
Running
which brew
shows this in my terminal:This makes sense for an Apple Silicon installation.
React Native information
React Native info
#### System - OS: macOS 12.6 - CPU: (10) x64 Apple M1 Max - Memory: 603.68 MB / 32.00 GB - Shell: 5.8.1 - /bin/zsh #### Binaries - Node: 14.18.3 - ~/.nvm/versions/node/v14.18.3/bin/node - Yarn: 1.22.19 - ~/.nvm/versions/node/v14.18.3/bin/yarn - npm: 6.14.15 - ~/.nvm/versions/node/v14.18.3/bin/npm - Watchman: 2022.09.12.00 - /opt/homebrew/bin/watchman #### Managers - CocoaPods: 1.11.3 - /opt/homebrew/bin/pod #### SDKs - iOS SDK: - Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0 - Android SDK: Not Found #### IDEs - Android Studio: 2021.2 AI-212.5712.43.2112.8815526 - Xcode: 14.0/14A309 - /usr/bin/xcodebuild #### Languages - Java: 11.0.16.1 - /usr/bin/javac #### npmPackages - @react-native-community/cli: Not Found - react: 17.0.1 => 17.0.1 - react-native: 0.64.3 => 0.64.3 - react-native-macos: Not Found #### npmGlobalPackages - *react-native*: Not FoundThanks for any help! 😇