React native package server not running - npm

when i try to run the project in terminal getting this error.Even pack manager also failed to run.I do not know how to solve this issue.any help will be appreciated.thanks in advance

Related

Unable to run react-native-windows after installing react-navigation

I installed the react-native windows application, following the steps mentioned here. After that I ran the application and it started up perfectly fine. Then I tried adding the react navigation package following the given steps. But when I try to build the application again I am getting the following error:
I have spent a lot of time trying to figure it out and I have gone through various steps that I could find online to rectify this issue, but they have not been useful. I have also double checked that all the dependencies are installed.
Any help will be greatly appreciated.

getting error when i reload emulator in react native

yesterday my application was running very well I closed it when I open my project in vs code and run npm start and open an android studio and open emulator I connected it again but this error comes on emulator.
It looks like your app was made with expo. Instead of npm start, use expo start. I've had a similar problem where the JavaScript bundle keeps building over and over. I solved it by restarting the app.
If this doesn't work, try restarting your pc.
Hope this helps :)
I think it's because of require() or try restarting your pc.

React Native metro bundler's running issue

I am developing mobile app using React-native-cli.
But I have got one difficult problem to solve.
I don't know why this issue is appeared.
I want RN experts to help me to solve this problem.
This issue is following.
I tried to run my app using following command.
react-native run-android -- --reset-cache
When my internet speed is very fast, my app is running well, but when internet speed is some slowly, it is not running.
My project is based on RN 0.59.
issue:
error: bundling failed: Error: Unable to resolve module scheduler/tracing from \working\temp\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js: Module scheduler/tracing does not exist in the Haste module map
please help me!!! :)enter image description here

Cannot find module 'babel-plugin-graphql-tag' when running App with React Native 0.59.1

I ran into that strange issue after upgrading to React Native 0.59.1 and trying to run my app on iOS devices in xcode.
Loading dependency graph, done.
error: bundling failed: Error: Cannot find module 'babel-plugin-graphql-tag' from '/Users/me/react_projects/my-app'
- If you want to resolve "graphql-tag", use "module:graphql-tag"
I tried to install some potentially missing packages but it does not help. I can post my package.json if that helps.
Many thanks in advance for any help!

React-Native run-android basic Getting Java.Net.UnknownHostException

I am a beginner in React Native and i have followed all the steps carefully as suggested in react-native Get-Started. Once the project is initiated and i try to run the same using run-android command, I am getting "java.net.UnknownhostException". To be particular, this issue is happening during gradle(https://services.gradle.org/distributions/gradle-2.2.1-all.zip) download.
I am on a corporate network and I have done the proxy setup as well in gradle-home/properties. I have tried downloading the gradle file manually and it works fine in my browser.
Any leads in fixing this issue is highly appreciated.
I think this link can solve your problem:
https://github.com/facebook/react-native/issues/2726
Edit gradle.properties in android sub-folder with the following details:
systemProp.http.proxyHost=proxyHost
systemProp.http.proxyPort=proxyPort
systemProp.https.proxyHost=proxyHost
systemProp.https.proxyPort=proxyPort
systemProp.http.proxyUser=YOUR_USERNAME
systemProp.http.proxyPassword=YOUR_PASSWORD
systemProp.https.proxyUser=YOUR_USERNAME
systemProp.https.proxyPassword=YOUR_PASSWORD