‘react-native’ is not recognized as an internal or external command

Problem

‘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.

Solution

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


Related Posts

1 thought on “‘react-native’ is not recognized as an internal or external command”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.