RN Development-linux Development Environment Setup (Ubuntu 12.04)

Source: Internet
Author: User
Tags install node git clone

1. Install the JDK first

2. Install the Android development environment

3. Install node. js

3.1 Official website Download: node-v6.9.1-linux-x64
3.2 Adding environment variables
sudo vi/etc/profile
Add the following content:
Export node_home=/home/xxx/reactnative/node-v6.9.1-linux-x64
Export path= $PATH: $NODE _home/bin
Export Node_path= $NODE _home/lib/node_modules
3.3 Adding mirrors
NPM Config Set Registry https://registry.npm.taobao.org
NPM Config set Disturl https://npm.taobao.org/dist

Use Node-v to view the node. JS version

4, installation Watchman

4.1 Installation Dependencies

sudo apt-get install autoconf automake Python-dev

4.2 Installing Watchman, if an error occurs, review the detailed documentation for installation dependencies

git clone https://github.com/facebook/watchman.git
CD Watchman
./autogen.sh
./configure
Make
sudo make install


5. Installing react-native

NPM install-g REACT-NATIVE-CLI

RN Development-linux Development Environment Setup (Ubuntu 12.04)

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.