close

[Solved] TypeError: cli.init is not a function

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?

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

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

8 thoughts on “[Solved] TypeError: cli.init is not a function”

Leave a Comment