Update how to build authored by Roland Alton's avatar Roland Alton
...@@ -20,15 +20,16 @@ ...@@ -20,15 +20,16 @@
export ANDROID_HOME=~/Software/AndroidSDK export ANDROID_HOME=~/Software/AndroidSDK
``` ```
- Install dependencies from working dir and be sure to have a stable node version (10.13 or higher, not 8) - Install dependencies from working dir and be sure to have a stable node version (10.13 works fine, not 8, 12 is [not yet supported by realm package as of Oct 2019](https://github.com/realm/realm-js/issues/2582#issuecomment-548282235))
```bash ```bash
$ sudo apt install nodejs npm curl $ sudo apt install nodejs npm curl
$ sudo npm cache clean -f $ sudo npm cache clean -f
$ sudo npm install -g n $ sudo npm install -g n
$ sudo n stable $ sudo n 10
$ sudo npm install -g yarn $ sudo npm install -g yarn
$ sudo npm install -g react-native-cli $ sudo npm install -g react-native-cli
$ sudo chown -R $USER:$(id -gn $USER) /home/ras/.config $ sudo chown -R $USER:$(id -gn $USER) /home/ras/.config
$ react-native link realm
$ yarn global add react-native-cli $ yarn global add react-native-cli
$ yarn config set cache-folder /media/someGBstorage/yarn/cache/ $ yarn config set cache-folder /media/someGBstorage/yarn/cache/
$ yarn $ yarn
... ...
......