您好,欢迎来到二三娱乐。
搜索
您的当前位置:首页Mac-React Native 环境搭建

Mac-React Native 环境搭建

来源:二三娱乐
/usr/bin/ruby -e "$(curl -fsSL 

4、安装 watchman 和 flow

brew install watchman
brew install flow

5、安装React Native 命令行工具

npm install -g react-native-cli

如果看到有错误:permission denied, 请在命令前面加上sudo 比如:

 sudo npm install -g react-native-cli

6、ReactNative 代码智能提醒 安装

git clone 

使用方法一

file -> import settings -> ReactNative.jar

使用方法二

Mac下安装
将ReactNative.xml复制到 ~/Library/Preferences/WebStorm11/templates
重启 WebStrom

-------------------------------------------------------分割线-------------------------------------------------------

warning 1

Looks like you installed react-native globally, maybe you meant react-native-cli?  
To fix the issue, run:  
npm uninstall -g react-native  
npm install -g react-native-cli 

按照提示

npm uninstall -g react-native  
npm install -g react-native-cli 

warning 2

xcrun: error: unable to find utility "instruments", not a developer tool or in PATH

终端输入

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/

学习资料:

Copyright © 2019- yule263.com 版权所有 湘ICP备2023023988号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务