جشنواره عیدانه راکت | عضویت ویژه راکت برای آخرین بار | افزایش قیمت‌ها از سال جدید | و ...

مشاهده اطلاعات بیشتر...
ثانیه
دقیقه
ساعت
روز
محسن
4 سال پیش توسط محسن مطرح شد
0 پاسخ

پکیج react-native-community-netinfo

سلام.بنده برای گرفتن net info تو react native از پکیج @react-native-community/netinfo استفاده کردم.مراحل نصب رو هم طبق دستورش اجرا کردم.اما موقع اجرا ارور میده

warn Your project is using deprecated "rnpm" config that will stop working from next release. Please use a "react-native.config.js" file to configure the React Native CLI. Migration guide: https://github.com/react-native-community/cli/blob/master/docs/configuration.md
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found ۸۷۵ file(s) to forward-jetify. Using ۸ workers...
info Starting JS server...
info Installing the app...
:ReactNative:Unexpected empty result of running 'npx.cmd --quiet --no-install react-native config' command from 'null' directory.
:ReactNative:Running 'npx.cmd --quiet --no-install react-native config' command from 'null' directory failed.

FAILURE: Build failed with an exception.

* Where:
Script 'C:\Users\Mohsen\Desktop\irantimesheet\node_modules\@react-native-community\cli-platform-android\native_modules.gradle' line: ۱۷۰

* What went wrong:
A problem occurred evaluating script.
> Command `config` unrecognized. Make sure that you have run `npm install` and that you are inside a react-native project.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in ۱s

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=۸۰۸۱
:ReactNative:Unexpected empty result of running 'npx.cmd --quiet --no-install react-native config' command from 'null' directory.
:ReactNative:Running 'npx.cmd --quiet --no-install react-native config' command from 'null' directory failed.

FAILURE: Build failed with an exception.

* Where:
Script 'C:\Users\Mohsen\Desktop\irantimesheet\node_modules\@react-native-community\cli-platform-android\native_modules.gradle' line: ۱۷۰

* What went wrong:
A problem occurred evaluating script.
> Command `config` unrecognized. Make sure that you have run `npm install` and that you are inside a react-native project.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in ۱s

    at checkExecSyncError (child_process.js:۶۱۰:۱۱)
    at execFileSync (child_process.js:۶۲۸:۱۵)
    at runOnAllDevices (C:\Users\Mohsen\Desktop\irantimesheet\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:۹۴:۳۹)
    at buildAndRun (C:\Users\Mohsen\Desktop\irantimesheet\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:۱۵۸:۴۱)
    at C:\Users\Mohsen\Desktop\irantimesheet\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:۱۲۵:۱۲
    at processTicksAndRejections (internal/process/task_queues.js:۹۷:۵)
    at async Command.handleAction (C:\Users\Mohsen\Desktop\irantimesheet\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:۱۶۴:۹)

وقتی پکیج رو پاک میکنم پروژه به راحتی اجرا میشه.کسی به این مشکل برخورده؟


ثبت پرسش جدید

به همدیگه کمک کنیم

به محسن کمک کنید تا مشکل خودش را حل کند؛ این‌طور می‌توانیم با هم پیشرفت کنیم.

برای ارسال پاسخ لازم است وارد شده یا ثبت‌نام کنید

ورود یا ثبت‌نام