权威的 Ionic 安装指南

权威的 Ionic 安装指南

如果你一定要投我反对票,那就投南极洲的反对票吧,但我已经尝试了每一个指南、虚拟机、脚本来尝试让它工作,但我就是无法让它发挥作用。出了什么问题?你说得出来的。有这么多的依赖关系和步骤。有没有人有一份 100% 有效的权威指南,最好是针对 ubuntu 14.04 的。

我收到的错误

ionic run android
Running command:/home/user/myApp/hooks/after_prepare/010_add_platform_class.js /home/user/myApp
add to body class: platform-android
Running command: /home/user/myApp/platforms/android/cordova/run 
ANDROID_HOME=/home/user/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-8-oracle

/home/user/myApp/platforms/android/cordova/node_modules/q/q.js:126
                throw e;
                      ^
Error executing "adb devices": /bin/sh: 1: adb: not found

ERROR running one or more of the platforms: Error: /home/user/myApp/platforms/android/cordova/run: Command failed with exit code 1
You may not have the required environment or OS to run this project  

我自己的路 ...

  echo $PATH
  /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/user/android-sdk-linux/tools:/home/user/android-sdk-linux/platform-tools:/home/user/android-sdk-linux:/home/user/android-sdk-linux/tools:/home/user/android-sdk-linux/platform-tools:/home/user/android-sdk-linux

离子列表

  Cordova CLI: 5.1.1
  Gulp version:  CLI version 3.9.0
  Gulp local:   Local version 3.9.0
  Ionic Version: 1.0.1
  Ionic CLI Version: 1.6.1
  Ionic App Lib Version: 0.3.3
  OS: Distributor ID:   Ubuntu Description: Ubuntu 14.04.2 LTS 
  Node Version: v0.12.6

相关内容