EvanBacon / expo-router-twitter

Expo Router Twitter clone
https://expo-twitter.netlify.app/
144 stars 21 forks source link

I am getting Expo/bin/cli error #1

Closed emremutlu08 closed 1 year ago

emremutlu08 commented 1 year ago

Hello,

I install the app by typing "yarn install", and when I try to run the "start" script by typing "yarn start", I get the below error.

PS C:\Apps\RN\expo-router-twitter> yarn web
yarn run v1.22.19
$ expo start --web
/bin/bash: C:\Apps\RN\expo-router-twitter\node_modules\.bin\..\expo\bin\cli: No such file or directory
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS C:\Apps\RN\expo-router-twitter> yarn start
yarn run v1.22.19
$ expo start --dev-client
/bin/bash: C:\Apps\RN\expo-router-twitter\node_modules\.bin\..\expo\bin\cli: No such file or directory
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I can find the file at C:\Apps\RN\expo-router-twitter\node_modules.bin..\expo\bin\cli and you can see the content inside of that file below:

#!/usr/bin/env bash

# Forward all arguments to the local CLI (@expo/cli).
npm exec --no-install -- expo-internal "$@"

How can I solve this problem?

emremutlu08 commented 1 year ago

I solve the problem by following these steps: 1- Remove "node_modules" and "yarn.lock" 2- Change "expo": "^49.0.0-alpha.3" to "expo": "next" in package.json 3- Run "npm install"

Enjoy!