rocLv
rocLv

Reputation: 568

I can't initiate react native example project

When I followed React Native Tutorial, I tried terminal $ react-native init AwsomeProject This will walk you through creating a new React Native project in /Users/myname/Projects/AwsomeProject / It got stuck, it generated some files.such as package.json, directory node_modules, without AwesomeProject/AwesomeProject.xcodeproj

My environment is OSX 10.10.5 nodejs v2.5.0 Command_Line_Tools_OS_X_10.10_for_Xcode_6.4 Xcode 6.4

Did I miss something? There was no error/warning at all.

Upvotes: 3

Views: 660

Answers (3)

Jeremy Eaton
Jeremy Eaton

Reputation: 148

According to Facebook's Getting Started walk-thru, you need Node version 4 or greater.

When you have the incorrect version (I had < 1.0.0), the project file structure compiles differently.

@rocLv's comment elucidates.

If everything is go, open the project at ios/AwesomeProject.xcodeproj

Upvotes: 0

Prashant Abhishek
Prashant Abhishek

Reputation: 116

I guess you are looking at the wrong place, the file AwesomeProject.xcodeproj will be there at AwesomeProject/ios/AwesomeProject.xcodeproj.

Upvotes: 1

ceditoph
ceditoph

Reputation: 41

You should try deleting the project and running init again with sudo. Make sure you have xcode 6 or higher, and you have the latest node installed.

Upvotes: 0

Related Questions