deepin react-native 开发环境搭建
来源:互联网 发布:剑三叽太捏脸数据 编辑:程序博客网 时间:2024/06/11 17:59
- Nodejs安装
- Yarn安装
- create-react-native-app
- expo预览APP
- 搭建过程二三事
Node.js安装
- 下载安装包
https://nodejs.org/zh-cn/
- 安装
# 解压tar xvf node-v8.9.3-linux-x64.tar.xz# 复制到你喜欢的目录 ~/software/mv node-v8.9.3-linux-x64 ~/software/# 添加到全局ln -s /home/ff/software/node-v8.9.3-linux-x64/bin/node /usr/local/bin/nodeln -s /home/ff/software/node-v8.9.3-linux-x64/bin/npm /usr/local/bin/npm
- 验证
# 任意目录node -v && npm -v# 输出v8.9.35.5.1
Yarn安装
- 参照官网即可
- 使用
Yan
代替npm
可以加快依赖包的下载速度 Yarn npm
设置淘宝镜像
yarn config set registry https://registry.npm.taobao.orgnpm config set registry https://registry.npm.taobao.org
create-react-native-app
# 安装yarn global add create-react-native-app# 创建项目create-react-native-app my-project# 进入目录cd my-project# 启动服务yarn start
expo
预览APP
expo
在google play
上,因此通过APKPure来安装APKPure
上安装expo
expo
扫码预览APP
搭建过程二三事
yarn start
启动提示
20:24:57: Unable to start server See https://git.io/v5vcn for more information, either install watchman or run the following snippet: sudo sysctl -w fs.inotify.max_user_instances=1024 sudo sysctl -w fs.inotify.max_user_watches=12288error Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
/etc/sysctl.conf
最后面添加下面两行,解决上面的提示
# gedit /etc/sysctl.conffs.inotify.max_user_instances=1024fs.inotify.max_user_watches=12288
su
用户第一次密码设置
# 按提示输入密码即可sudu passwd
阅读全文
0 0
- deepin react-native 开发环境搭建
- 搭建 React Native 开发环境
- 搭建React Native开发环境
- React Native 搭建开发环境
- React Native开发环境搭建
- 搭建React Native开发环境
- React-Native开发环境搭建
- React Native搭建开发环境
- React Native 开发环境搭建
- React Native 搭建开发环境
- react Native搭建开发环境
- React Native搭建开发环境
- React Native搭建开发环境
- react-native开发环境搭建
- react native开发环境搭建
- react-native 开发环境搭建
- 【React Native开发】 - Windows系统搭建React-Native开发环境
- React Native开发一 webstorm搭建React Native开发环境
- 全局变量、局部变量、静态变量和实例变量的区别(转载)
- qwb与电阻
- centos7 mysql数据库安装和配置
- NDK的简单使用
- 七分钟笔记——Git(名词解释)
- deepin react-native 开发环境搭建
- 数据结构之第一章 引论 及 课后题答案
- 知识学习——Hadoop OutputFormat
- LeetCode Roman to Integer
- com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
- 串.c
- JSON的简介和在Java中的使用
- QSerialPort,QSerialPortInfo使用
- Rstudio中配置环境实现动态报告