How to run React native expo with npm start and expo start - javascript

I am trying to run react native expo, it runsbefore but after try to build an apk, it doest work anymore.
here the error below.
I tried npm start and expo start it doesn't work.

I'd suggest to install the expo-cli globally. In the future you use the cool features that are provided by this cli. Like expo init.
npm install expo-cli -g

Related

npx create-next-app command not working ENOENT error

It is showing this error, i'm using npx still it is showing using yarn, npx is working fine when i'm using it for react app
It should provide me the next app starter
A temporary fix might be "npx create-next-app#latest --use-npm", so that creat-next-app will use npm instead of yarn while installing.

React-Native metro not running

i'm new to react native and i've been following https://reactnative.dev/docs/environment-setup and in the 'Start Metro' step, npx react-native start doesn't work
pls help
Please make sure you installed Node first with Homebrew:
brew install node
brew install watchman
Try yarn start or npm start after you installed node.

Reactjs stuck at installing react Dom,react-templates

I have installed nodejs then I tried to create react is app using npx create-react-app my-app but it just stuck in installing react-dom,cra-templates and then I tried npm also but it's the same please help need to learn react js please help
I have node version v16.13.2.
and npm version 8.1.2
PS D:\Programming\React Js> npx create-react-app firstapp
Creating a new React app in D:\Programming\React Js\firstapp.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
You can try to install globally, generally there are no more problems after. To install run this command
npm install -g create-react-app
Once installation successful, try running
npx create-react-app my-app
You likely have a global installation of create-react-app which is not the latest version. Uninstall it using npm uninstall -g create-react-app.
The CRA docs recommend uninstalling the global version in their very first steps:
If you've previously installed create-react-app globally via npm install -g create-react-app, we recommend you uninstall the package using npm uninstall -g create-react-app or yarn global remove create-react-app to ensure that npx always uses the latest version.

I am trying to install react-native but keep getting errors

I want to start developing native apps with react-native and i am also using VScode as my code editor, i keep running in to error when trying to start my project using this command "expo init First project", so how do you think i can overcome this error
You should first install the expo-cli with npm install --global expo-cli before starting a project
Once you have Node.js installed run the following command:
npm install -g expo-cli
After successfully installing the Expo CLI you can initialize a brand new project by running the following command:
expo init <name of project goes here>
cd <name of project goes here>
npm start
Below is an example of how this will work:
expo init my-todo-app
cd my-todo-app
npm start

Cannot install react native dependencies using expo-cli

I have a new React-Native project up and running using expo. I am trying to install the react navigation dependencies. I followed the instructions in the docs, I downloaded "#react-navigation/native": "^5.7.1", and "#react-navigation/stack": "^5.7.1" using NPM. Then when I run expo install react-native-reanimated, it throws the error Unexpected end of JSON input. I am using node version 14.6.0 and I have installed the expo-cli globally.
You need to clean your npm cache...
In your command line run npm clean cache
Try to do what I said above... It should work...

Categories