React-native Installation and use

Source: Internet
Author: User
Tags install node



Please attach react-native Official document Chinese version: http://wiki.jikexueyuan.com/project/react-native/getting-started.html



OK, let's take a look at the installation process.



The first is five needs


    1. OS x – Now this warehouse contains only IOS implementations, and Xcode can only run on Mac.
    2. Don't know Xcode? Download it from the Mac App Store.
    3. The recommended way to install Node,watchman,flow is Homebrew.
    4. brew install node。 Don't know node and NPM
    5. brew install --HEAD watchman。 We recommend installing Watchman, or you may encounter a node file with a bug.
    6. brew install flow。 If you want to use flow.


Download Xcode and don't say much.



The Brew Install node command was entered in terminal, prompting



-bash:brew:command not found



Indicates that my computer does not have homebrew (this is the official website http://brew.sh/index_zh-cn.html), we only need to enter the command


ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


Then, wait for it. But to run the above command must use a VPN, do not forget oh.



Appear



==> Installation successful!



Indicates that the installation was successful. then enter the command



Brew Install node



Brew Install--head Watchman



Brew Install Flow



Success!



So here's the quick start, and I'm having a little problem here.


    • npm install -g react-native-cli
    • react-native init AwesomeProject


When I entered the first command, I made a mistake and appeared






NPM err! tar.unpack untar error/users/zhenghm/.npm/react-native-cli/0.1.7/package.tgz






Wait for a bunch of errors because the NPM folder operation requires system permissions, and the command is preceded by sudo.



Here is the end, have any questions please leave a message we discuss each other, thank you ~






React-native Installation and use


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.