I am trying to run my react-native project But I am facing the following error: TypeError: cli.init is not a function in React-native. We are going to Learn about All Possible Solutions So Lets Get Start with This Article.
How TypeError: cli.init is not a function Error Occurs?
I am trying to run my react-native project But I am facing the following error:
TypeError: cli.init is not a function
So here I am writing all the possible solutions that I have tried to resolve this error.
How To Solve TypeError: cli.init is not a function Error?
How To Solve TypeError: cli.init is not a function Error?
To Solve TypeError: cli.init is not a function Error Seems like some issue with the Latest Release of react-native Latest version 0.69 So You just need to downgrade Reactnative to 0.68.2. Just Run this Command in your terminal: npx react-native init YourProjectName –version 0.68.2 And Now, You can Run Your project without any error and Your error is Solved Now, Thank You.
TypeError: cli.init is not a function
To Solve TypeError: cli.init is not a function Error Seems like some issue with the Latest Release of react-native Latest version 0.69 So You just need to downgrade Reactnative to 0.68.2. Just Run this Command in your terminal: npx react-native init YourProjectName –version 0.68.2 And Now, You can Run Your project without any error and Your error is Solved Now, Thank You.
Solution 1: Downgrade react-native to 0.68.2
Seems like some issue with the Latest Release of react-native Latest version 0.69 So You just need to downgrade Reactnative to 0.68.2. Just Run this Command in your terminal.
npx react-native init YourProjectName --version 0.68.2
And Now, You can Run Your project without any error and Your error is Solved Now, Thank You.
Conclusion
It’s all About this error. Hope We solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read
- Can’t find Python executable “python”, you can set the PYTHON env variable
- selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH
- Error: This command is not available when running the Angular CLI outside a workspace
- TypeError: cli.isMultipleCompiler is not a function
- selenium.common.exceptions.WebDriverException: Message: unknown error: cannot determine loading status
Thanks man this worked
It’s my Pleasure to Help You. Thank You So Much For Your Valuable words.
Thank you. It worked.
It’s my Pleasure to Help You Sudheera. Thank You For Your Valuable words.
i solve the problem using yarn
yarn add react-native, then npx react-native init myApp
Thank You for Your Valuable Suggestions
thank you! It worked well
It’s my Pleasure to Help You koray. Thank You So Much For Your Valuable words.