React native doesn't start metro bundler on chrome after i try to run npm start on terminal

Viewed 2008

metro bundler I'm trying to run an app published by other programmer but it doesn't run metro bundler on google chrome when I type npm start on terminal.

On the other hand, I created a project and run it and it works my project

2 Answers

You need to install the dependencies of the other developer's project by running 'npm install' before starting metro bundler.

Open new terminal and run below command, It will bring up expo dev client.

expo start --dev-client

enter image description here


Sometimes it might throw an error as below.

Missing package "metro/src/lib/attachWebsocketServer" in the project. This usually means react-native is not installed. Please verify that dependencies in package.json include "react-native" and run yarn or npm install.

To fixing this issue, run the command

npm install -g expo-cli
npm install expo-dev-client
expo start --dev-client
Related