0

I try to run my first react-native app with expo start and below error occur Cannot find module ‘expo/tools/LogReporter’

I find several questions about this problem and follow but none of them can’t solve my problem (I checked all of them serveral times and did works that they said)

Package.json :

{
“main”: “node_modules/expo/AppEntry.js”,
“scripts”: {
“start”: “expo start”,
“android”: “expo start --android”,
“ios”: “expo start --ios”,
“eject”: “expo eject”
},
“dependencies”: {
“expo”: “^32.0.0”,
“react”: “16.5.0”,
“react-native”: “https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz”
},
“devDependencies”: {
“babel-preset-expo”: “^5.0.0”
},
“private”: true,
“name”: “sample”,
“version”: “1.0.0”,
“author”: “Jahanmir”,
“license”: “ISC”,
“description”: “”
}
SajjadZare
  • 2,487
  • 4
  • 38
  • 68

1 Answers1

0

have you checked if you find it in your node_modules? what I typically do in such case is delete the node_modules folder and run npm install which will re-install all node modules.

Defrian
  • 610
  • 2
  • 6
  • 16
  • what this is telling you is, that git is not defined in the system path. have you installed git? if not please install git and afterwards see https://stackoverflow.com/questions/26620312/installing-git-in-path-with-github-client-for-windows to add it to the path – Defrian Jan 27 '19 at 20:30
  • @Defrain I did it, delete folder and run npm install expo-cli but again occur same error – SajjadZare Jan 27 '19 at 20:37
  • can you try to open `cmd` Terminal an enter `git --version` – Defrian Jan 27 '19 at 21:19
  • git version 2.20.1.windows.1 – SajjadZare Jan 28 '19 at 06:06
  • did the answer below solve the problem? if not: where can I find the complete error message? – Defrian Jan 28 '19 at 20:31