前提:更改源,做好root登录及ssh连接,跳转到这里 1.安装 nodejs apt-get install curl curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs 2.安装 react-native npm config set registry https://registry.npm.taobao.org npm install -g react-native-cli 3.安装JDK sudo apt-get install openjdk-8-jdk 4.安装git apt-get install git 5.下载源码 git clone https://github.com/jitsi/jitsi-meet.git cd jitsi-meet 6.安装 yarn curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn 7.执行yarn npm install webpack -g yarn 8.根据https://facebook.github.io/react-native/docs/getting-started.html#installing-dependencies 的要求安装 Android studio 也可以直接使用:react-native run-android,安装到手机 9.安装watchman apt install linuxbrew-wrapper brew update && brew upgrade brew install watchman 10.运行项目 react-native start Watchman crawl failed. Retrying once with node crawler.解决方式: echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p echo fs.inotify.max_queued_events=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p error: bundling failed: Error: Unable to resolve module `lib-jitsi-meet/lib-jitsi-meet.min` from `/mnt/jitsi-meet-master/react/features/base/lib-jitsi-meet/_.native.js`: Module `lib-jitsi-meet/lib-jitsi-meet.min` does not exist in the Haste module map 解决方式: /mnt/jitsi-meet-master/node_modules/lib-jitsi-meet yarn
PHP技术交流QQ群:422137578 除非注明,文章均为 PHP二次开发 原创,转载请注明本文地址:http://www.php2.cc/article-2687-1.html |
yuhaizhou: 你好 我是在win下编译的 环境都安装好了 yarn的时候老是出错中断 我不知道该怎么解决了 困扰我好几天了 能麻烦看下吗 ...
查看全部评论(6)