‘react-native’ is not recognized as an internal or external command
While ejecting your project out of the Expo environment you can face this problem.
To solve this problem, the solution is simple just install
react-native-cli using the following command.
npm install -g react-native-cli
The command will install the react-native-cli on your command line and you can use your react-native command which is located here
C:\Users\Admin\AppData\Roaming\npm\react-native -> C:\Users\Admin\AppData\Roaming\npm\node_modules\react-native-cli\index.js
2 thoughts on “‘react-native’ is not recognized as an internal or external command”
react-native : The term ‘react-native’ is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included, verify that the path is correct and try
At line:1 char:1
+ react-native run-android
+ CategoryInfo : ObjectNotFound: (react-native:String) , Comm
+ FullyQualifiedErrorId : CommandNotFoundException
npm install -g react-native-clibefore running that command or use