React-Native 安装使用
来源:互联网 发布:没有网站怎么做seo 编辑:程序博客网 时间:2024/09/21 08:48
React-Native 安装使用
1、首先
运行 cmd +r ,输入:
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
2、安装 python2
choco install python2
3、安装 nodeJS
choco install nodejs.install
4、安装完node后建议设置npm镜像以加速后面的过程(或使用科学上网工具)。
npm config set registry https://registry.npm.taobao.org --globalnpm config set disturl https://npm.taobao.org/dist --global
5、开始安装 react_Native 的基础插件react-native-cli
npm install -g yarn react-native-cli
完成之后,就可以使用 react-native-cli 安装你所需的项目了
6、切换到你想存放项目的指定路劲地址,然后执行命令:
react-native init AwesomeProjectcd AwesomeProjectreact-native run-android
7、当你安装完成之后,在cmd切换到你项目目录地址,
运行命令:
npm start //开启服务,默认端口为:8081
注:
当你运行的时候,可能会因为电脑的某些配置,会占用端口号,报403错误信息,例如:
解决方案在这里:
解决1
如果解决1还是没解决你的问题,那么请看:
解决2
0 0
- react-native安装使用
- React-Native 安装使用
- React native的安装与使用
- react-native(1)------mac安装、配置、使用
- 小记react-native 安装
- 安装react-native
- 安装react native
- 安装React Native
- react native安装笔记
- react-native:环境安装
- React native windows安装
- React native 安装
- React Native Windows 安装
- React Native 之 安装
- react-native安装指南
- React Native安装
- React Native环境安装
- React native安装,配置
- 插件化开发—动态加载技术加载已安装和未安装的apk
- React-Native之禁用Navigator默认的右滑手势返回上一页
- jQuery ajax——ajax()方法的参数
- js中的事件委托或是事件代理详解
- 不用搭环境的10分钟AngularJS指令简易入门01(含例子)
- React-Native 安装使用
- 代码规范
- Android Studio升级2.3 gradle升级慢的问题 解决方案
- Vue双向绑定原理(一)文档片段DocumentFragment
- spring boot 初识
- 用VIM结合Keil(MDK)写STM32、C51等程序
- c++下RSA和BLOWFISH加解密-使用Crypto库
- oracle虚拟机安装,sqlplus不是内部或外部命令
- python中jieba分词快速入门