React Native npm Image installation command

Source: Internet
Author: User

Open the console and execute the two lines separately (NPM mirroring accelerates the process later)


npm config set registry https://registry.npm.taobao.org –global 
npm config set disturl https://npm.taobao.org/dist –global 


 

After execution (yarn is a tool that Facebook offers to replace NPM, which accelerates the download of the node module)
NPM install-g Yarn REACT-NATIVE-CLI
And then execute (yarn after the same also set the mirror source)

yarn config set registry https://registry.npm.taobao.org –global 
yarn config set disturl https://npm.taobao.org/dist –global

Create a new folder, press CTRL and right-click in the directory to open the CMD command window, execute react-native init Firstapp, make the project, Firstapp is the project name.

React Native npm Image installation command

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.