Missing package "metro" in the project at D:\ReactNative\FirstProject

Solution 1:

I had the same issue after installing

react-native-paper

After follow this steps all worked again

  1. Remove node_modules folder.

  2. Install all dependencies again, run npm install. If show any error Remove package-lock.json.

  3. Run npm start again.

Happy coding.

Solution 2:

you don't really need to delete node_modules folder.

just update it by typing:

1/ npm : npm install

or

2/ yarn : yarn install

in your terminal. That will update the node_modules folder content as well as creating all missing files without the need to reinstall it from scratch.

Solution 3:

I deleted the folder "node_modules" then run "npm install" again. It worked for me.