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 "$@"
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"
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.
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:
How can I solve this problem?