我刚刚克隆了这个存储库:反应本机纸 https://github.com/callstack/react-native-paper
但是当我在根目录上运行时:
$ yarn install
我收到以下警告:
D:\react-native-paper (master) ([email protected] /cdn-cgi/l/email-protection)
λ yarn install
yarn install v1.13.0
[1/4] Resolving packages...
warning Resolution field "[email protected] /cdn-cgi/l/email-protection" is incompatible with requested version "babel-core@^6.26.0"
warning Resolution field "[email protected] /cdn-cgi/l/email-protection" is incompatible with requested version "babel-core@^6.26.0"
warning Resolution field "[email protected] /cdn-cgi/l/email-protection" is incompatible with requested version "babel-core@^6.0.0"
warning Resolution field "[email protected] /cdn-cgi/l/email-protection" is incompatible with requested version "babel-core@^6.0.0"
warning Resolution field "[email protected] /cdn-cgi/l/email-protection" is incompatible with requested version "babel-core@^6.7.2"
然后,当我这样做时:
$ cd example
$ yarn install
我得到以下输出和更多警告:
yarn install v1.13.0
[1/4] Resolving packages...
warning Resolution field "[email protected] /cdn-cgi/l/email-protection" is incompatible with requested version "[email protected] /cdn-cgi/l/email-protection"
[2/4] Fetching packages...
info [email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The CPU architecture "x64" is incompatible with this module.
info @expo/ng[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The CPU architecture "x64" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > [email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "prop-types@^15.0.0".
warning " > @expo/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "expo-font@^1.0.0".
warning "expo > [email protected] /cdn-cgi/l/email-protection" has incorrect peer dependency "[email protected] /cdn-cgi/l/email-protection".
warning "expo > [email protected] /cdn-cgi/l/email-protection" has incorrect peer dependency "react-native@^0.44.1".
warning "expo > babel-preset-expo > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > @babel/plugin-proposal-decorators > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0". warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0". warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/plugin-proposal-class-properties > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/plugin-proposal-nullish-coalescing-operator > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/plugin-proposal-object-rest-spread > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/plugin-proposal-optional-catch-binding > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/plugin-proposal-optional-chaining > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/plugin-transform-flow-strip-types > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/plugin-transform-react-jsx > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/plugin-transform-typescript > @babel/plugin-syntax-type[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
我特别注意上述警告,因为当我尝试使用(目录内:/example
):
$ yarn start
我在终端上得到以下输出:
There is a new version of expo-cli available (2.6.14).
You are currently using expo-cli 2.3.8
Run `npm install -g expo-cli` to get the latest version
[23:26:13] Starting project at D:\react-native-paper\example
[23:26:23] Expo DevTools is running at http://localhost:19002
[23:26:23] Opening DevTools in the browser... (press shift-d to disable)
[23:27:19] Starting Metro Bundler on port 19001.
[23:27:32] Successfully ran `adb reverse`. Localhost URLs should work on the connected Android device.
[23:27:36] Tunnel ready.
exp://192.168.1.194:19000
[QR CODE HERE]
To run the app with live reloading, choose one of:
• Sign in as @napolev in Expo Client on Android or iOS. Your projects will automatically appear in the "Projects" tab.
• Scan the QR code above with the Expo app (Android) or the Camera app (iOS).
• Press a for Android emulator.
• Press e to send a link to your phone with email/SMS.
Press ? to show a list of all available commands.
Logs for your project will appear below. Press Ctrl+C to exit.
[23:28:51] Unable to resolve "@babel/runtime/helpers/interopRequireDefault" from "..\src\index.js"
Building JavaScript bundle [=================================================================================================== ] 99%
我还在移动设备上得到以下输出:
Unable to resolve module @babel/runtime/helpers/interopRequireDefault from index.js
如下图所示:
您知道如何使该应用程序在移动设备上运行吗?
Thanks!
请尝试执行
yarn add @babel/runtime
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)