简体   繁体   English

Windows 8.1 64位上的“ionic build android”:错误:Hook失败,错误代码为ENOENT

[英]“ionic build android” on windows 8.1 64-bit: Error: Hook failed with error code ENOENT

I am following http://learn.ionicframework.com/videos/windows-android/ When I run 我正在关注http://learn.ionicframework.com/videos/windows-android/当我跑步时

ionic build android 

I have following error: 我有以下错误:

Updated the hooks directory to have execute permissions
running cordova build android
Running command: C:\Windows\system32\node C:\_Learn\ionic\firstIonicApp\hooks\after_prepare\010_add_platform_class.js C:\_Learn\ionic\firstIonicApp
Error: Hook failed with error code ENOENT: C:\_Learn\ionic\firstIonicApp\hooks\after_prepare\010_add_platform_class.js
    at C:\Users\Username\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\hooks\HooksRunner.js:195:23
    at _rejected (C:\Users\Username\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:797:24)
    at C:\Users\Username\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:823:30
    at Promise.when (C:\Users\Username\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:1035:31)
    at Promise.promise.promiseDispatch (C:\Users\Username\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:741:41)
    at C:\Users\Username\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:557:44
    at flush (C:\Users\Username\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:108:17)
    at process._tickCallback (node.js:355:11)
    at Function.Module.runMain (module.js:503:11)
    at startup (node.js:129:16)

My Android Home: 我的Android主页:

C:\\>echo %ANDROID_HOME% C:\\> echo%ANDROID_HOME%

C:\\Program Files (x86)\\Android\\android-sdk C:\\ Program Files(x86)\\ Android \\ android-sdk

There is an open issue on Github Github上有一个未解决的问题

And the workaround that I am using is just rename the after_prepare folder 我正在使用的解决方法是重命名after_prepare文件夹

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows 8.1上的PhoneGap平台添加Android命令出现64位错误 - PhoneGap on windows 8.1 64 bit error with Platform add android command 由于缺少 64 位库,无法构建 64 位版本的 Ionic Android App - Can't build 64-bit version of Ionic Android App due to missing 64-bit library 为android 64位arm架构构建本机代码 - build native code for android 64-bit arm architecture 离子中的“错误;生成 cmd ENOENT”(离子构建 android 命令) - "Error ; spawn cmd ENOENT" in ionic (ionic build android command) Ionic / Cordova和Android 64位要求 - Ionic/Cordova & Android 64-bit requirement 挂钩失败,错误代码为ENOENT-如何将Android资源添加到配置xml而不是使用挂钩 - Hook failed with error code ENOENT - How to add Android resources to config xml rather than using hooks 在Ubuntu 14.04 LTS 64位上构建android源代码(Lollipop-> master分支)时出错 - Error while building android source code ( Lollipop -> master branch) on ubuntu 14.04 LTS 64-bit 如何在Windows 8.1-64位系统中启用虚拟化技术 - how to enable virtualization technology in windows 8.1 - 64-bit system 集成android开发包在安装过程中错误Windows 8.1(64位)的下载 - tegra android development pack downloading during installation error windows 8.1 (64 bit) Android 64 位 Delphi 应用程序部署期间出错 - Error during Android 64-bit Delphi app deployment
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM