簡體   English   中英

我在使用 Mac OS high sierra 嘗試創建新的 React Native 項目時安裝捆綁器時遇到問題

[英]I got a problem installing bundler when trying create my new react native project am using Mac OS high sierra

這是我的終端 output

✔ Downloading template
✔ Copying template
✔ Processing template
✖ Installing Bundler
error 
✖ Installing Bundler
error Error: Looks like your iOS environment is not properly set. Please go to https://reactnative.dev/docs/next/environment-setup and follow the React Native CLI QuickStart guide for macOS and iOS.
Error: Error: Looks like your iOS environment is not properly set. Please go to https://reactnative.dev/docs/next/environment-setup and follow the React Native CLI QuickStart guide for macOS and iOS.
    at createFromTemplate (/Users/techero/.npm/_npx/1164/lib/node_modules/react-native/node_modules/@react-native-community/cli/build/commands/init/init.js:169:11)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Object.initialize [as func] (/Users/techero/.npm/_npx/1164/lib/node_modules/react-native/node_modules/@react-native-community/cli/build/commands/init/init.js:222:3)
    at async Command.handleAction (/Users/techero/.npm/_npx/1164/lib/node_modules/react-native/node_modules/@react-native-community/cli/build/index.js:140:9).

請幫我修復這個錯誤..我四處走動嘗試不同的選擇但沒有結果

我運行 npx react-native init myapp 並且我運行了 react native doctor,這就是結果……我需要幫助修復這個錯誤……

Techeros-MacBook-Pro:myapp techero$ npx react-native doctor
Common
 ✓ Node.js
 ✓ npm
 ● Watchman - Used for watching changes in the filesystem when in development mode

Android
 ✓ JDK
 ✓ Android Studio - Required for building and installing your app on Android
 ✓ Android SDK - Required for building and installing your app on Android
 ✓ ANDROID_HOME

iOS
 ✖ Xcode - Required for building and installing your app on iOS
   - Version found: N/A
   - Version supported: >= 12.x
 ✓ CocoaPods - Required for installing iOS dependencies
 ● ios-deploy - Required for installing your app on a physical device with the CLI
 ✓ .xcode.env - File to customize Xcode environment

Errors:   1
Warnings: 2

Usage
 › Press f to try to fix issues.
 › Press e to try to fix errors.
 › Press w to try to fix warnings.
 › Press Enter to exit.


type here

從你的錯誤:

 ✖ Xcode - Required for building and installing your app on iOS
   - Version found: N/A
   - Version supported: >= 12.x

您需要為此版本安裝 Xcode 12 或更高版本和構建工具。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM