-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Thanks for a more explained fork... Following your instructions, I'm getting the following error:
error: no devices/emulators found
This is when I run the instructions as is... Do I need to do anything else?
Create Project
$ ~/dev/github/public/MaximeD/docker-react-native/react-native.sh init MyAwesomeProjet
This will walk you through creating a new React Native project in /home/dev/app/MyAwesomeProjet
Installing react-native package from npm...
npm info it worked if it ends with ok
npm info using npm@2.14.4
npm info using node@v4.1.1
npm info attempt registry request try #1 at 8:58:34 PM
npm http request GET https://registry.npmjs.org/react-native
npm http 200 https://registry.npmjs.org/react-native
npm info retry fetch attempt 1 at 8:58:35 PM
npm info attempt registry request try #1 at 8:58:35 PM
npm http fetch GET https://registry.npmjs.org/react-native/-/react-native-0.42.0.tgz
npm http fetch 200 https://registry.npmjs.org/react-native/-/react-native-0.42.0.tgz
npm info install react-native@0.42.0 into /home/dev/app/MyAwesomeProjet
npm info installOne react-native@0.42.0
npm info preinstall react-native@0.42.0
npm WARN peerDependencies The peer dependency react@~15.4.1 included from react-native will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm info attempt registry request try #1 at 8:59:43 PM
npm http request GET https://registry.npmjs.org/babel-core
npm info attempt registry request try #1 at 8:59:43 PM
npm http request GET https://registry.npmjs.org/babel-generator
npm info attempt registry request try #1 at 8:59:43 PM
npm http request GET https://registry.npmjs.org/
..
..
npm http fetch GET https://registry.npmjs.org/errorhandler/-/errorhandler-1.4.3.tgz
npm http 200 https://registry.npmjs.org/csurf
npm http 200 https://registry.npmjs.org/cookie
npm http 200 https://registry.npmjs.org/set-blocking
npm http 200
`npm install --save --save-exact react-native` failed
At this point, it failed with react-native installation... However, wouldn't the install still install more things?
Enter Container + Start adb with Failure
$ ~/dev/github/public/MaximeD/docker-react-native/react-native-container.sh
dev@oahu:~/app$ cd node_modules/react-native/
dev@oahu:~/app/node_modules/react-native$ yarn
yarn install v0.21.3
info No lockfile found.
[1/4] Resolving packages...
warning xcode > node-uuid@1.4.7: use uuid module instead
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 34.91s.
dev@oahu:~/app/node_modules/react-native$ adb reverse tcp:8081 tcp:8081
* daemon not running. starting it now at tcp:5037 *
* daemon started successfully *
error: no devices/emulators found
dev@oahu:~/app/node_modules/react-native$
Can Create Emulators
$ android avd
It did end with an error to enable 32bit ...
Gtk-Message: Failed to load module "canberra-gtk-module"
dev@oahu:~/app$ export ANDROID_EMULATOR_FORCE_32BIT=true
However, It couldn't because now it requires KVM
dev@oahu:~/app$ emulator -list-avds
AVD_for_Nexus_S_by_Google
dev@oahu:~/app$ emulator @AVD_for_Nexus_S_by_Google
emulator: WARNING: Increasing RAM size to 1GB
emulator: ERROR: x86_64 emulation currently requires hardware acceleration!
Please ensure KVM is properly installed and usable.
CPU acceleration status: This user doesn't have permissions to use KVM (/dev/kvm).
At this point, how can I run this Docker Image with an Emulator?
Metadata
Metadata
Assignees
Labels
No labels