'Unable to find expo in this project - have you run yarn / npm install yet?

I'm Unable to execute the expo start command.

Error Message:

PS C:\Users\Jacky Goyal\OneDrive\Desktop\rn1\my-project> expo start
Starting project at C:\Users\Jacky Goyal\OneDrive\Desktop\rn1\my-project

Unable to find expo in this project - have you run yarn / npm install yet?
    ├─ action (C:\Users\Jacky Goyal\AppData\Roaming\npm\node_modules\expo-cli\src\commands\start.ts:34:11)
    ├─ C:\Users\Jacky Goyal\AppData\Roaming\npm\node_modules\expo-cli\src\commands\start.ts:135:22
    └─ expo start (C:\Users\Jacky Goyal\AppData\Roaming\npm\node_modules\expo-cli\src\exp.ts:350:7)
PS C:\Users\Jacky Goyal\OneDrive\Desktop\rn1\my-project> npm install
added 28 packages, removed 46 packages, changed 34 packages, and audited 653 packages in 8s
17 packages are looking for funding
  run `npm fund` for details
7 low severity vulnerabilities
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
PS C:\Users\Jacky Goyal\OneDrive\Desktop\rn1\my-project> npm audit

npm audit report

node-fetch  <=2.6.0 || 3.0.0-beta.1 - 3.0.0-beta.8
Denial of Service - https://npmjs.com/advisories/1556
No fix available
node_modules/isomorphic-fetch/node_modules/node-fetch
  isomorphic-fetch  2.0.0 - 2.2.1
  Depends on vulnerable versions of node-fetch
  node_modules/isomorphic-fetch
    fbjs  0.7.0 - 1.0.0
    Depends on vulnerable versions of isomorphic-fetch
    node_modules/fbjs
      metro  0.22.1 - 0.63.0
      Depends on vulnerable versions of fbjs
      Depends on vulnerable versions of metro-config
      node_modules/metro
        @react-native-community/cli  *
        Depends on vulnerable versions of metro
        Depends on vulnerable versions of react-native
        node_modules/@react-native-community/cli
          react-native  <=0.0.0-ffdfbbec0 || 0.22.0-rc - 0.64.0-rc.4
          Depends on vulnerable versions of @react-native-community/cli
          Depends on vulnerable versions of fbjs
          node_modules/react-native
        metro-config  <=0.63.0
        Depends on vulnerable versions of metro
        node_modules/metro-config
7 low severity vulnerabilities\
Some issues need review, and may require choosing
a different dependency```


Solution 1:[1]

enter image description here

  1. Change expo version from "^1.0.0" to "~41.0.1" (package.json)
  2. npm install
  3. npm start

Solution 2:[2]

I also received your message when installing the commands in the "React Navigation" set-up instructions and fixing vulnerabilities. The problem arises when using the command: npm audit fix --force. If you check the warnings after this command, you get

npm WARN audit Updating expo to 1.0.0, which is a SemVer major change.

So, try running: sudo expo update

If that doesn't work, try installing expo again with: npm install --global expo-cli and then update.

Solution 3:[3]

if anyone is still facing issues, run

yarn add expo

if you don't have yarn installed on your computer then run

npm install -g yarn

and then run the first command.

Solution 4:[4]

I'm also facing this error. So I run the npm command in the terminal.

npm install

You do not need to change the expo version. you just reinstall it.

Solution 5:[5]

  1. Update the Expo to the latest version sudo expo update enter image description here

  2. Then install the updated npm packages npm install enter image description here

  3. Fix the issues in the packages npm audit fix --force enter image description here

  4. Run the Application npm start or expo start enter image description here

Solution 6:[6]

Error ? you are trying to launch the expo framework yet it can't be found installed as part of your application modules

solution? simply find the latest version of Expo i.e for my case "expo": "^44.0.0", then go to your package.json file in your root folder, under the "dependencies" property plug-in that Expo version i.e

"dependencies":{
    "expo": "^44.0.0", 
}

close package.json file, then in your root folder run the command: npm install after package installation is done run expo start

Solution 7:[7]

See the expo version - default "^1.0.0" , change ==> "expo": "~41.0.1"

Solution 8:[8]

  • Change expo to version "~43.0.0" in package.json
  • run npm audit fix --force in node_modules directory

Solution 9:[9]

I simply used the expo update command.

It asked me

You are currently using SDK 1.0.0. Would you like to update to the latest version, 44.0.0?

and I said yes, y not..

Every Thing was good to go with the npm start command

Cheers..

Solution 10:[10]

you can run the below to install all dependencies

  1. npm i

or to install exp

  1. npm i -g expo-cli

Solution 11:[11]

here are my 2 cents. This worked for me :

  1. Download latest version of nodejs - https://nodejs.org/en/download/
  2. After installing nodejs reboot your computer
  3. install : npm install --global expo-cli
  4. Generate a new project with - npx expo-cli init projectName
  5. cd projectName
  6. npm start

Solution 12:[12]

This problem I faced was because of cloning a new project and trying to run it.

Always install the modules using the below command

I solved this by

npm install or npm i

Solution 13:[13]

I had same problem.

I simply used the expo update command.

You are currently using SDK 1.0.0. Would you like to update to the latest version, 44.0.0?

and I said yes.

Every Thing was good to go with the npm start command

thats all

Solution 14:[14]

Is possible that you need an update try this command:

 sudo expo update