cordova - "ionic build android" on windows 8.1 64-bit: Error: Hook failed with error code ENOENT -


i following http://learn.ionicframework.com/videos/windows-android/ when run

ionic build android  

i have following error:

updated hooks directory 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 error code enoent: c:\_learn\ionic\firstionicapp\hooks\after_prepare\010_add_platform_class.js     @ c:\users\username\appdata\roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\hooks\hooksrunner.js:195:23     @ _rejected (c:\users\username\appdata\roaming\npm\node_modules\cordova\node_modules\q\q.js:797:24)     @ c:\users\username\appdata\roaming\npm\node_modules\cordova\node_modules\q\q.js:823:30     @ promise.when (c:\users\username\appdata\roaming\npm\node_modules\cordova\node_modules\q\q.js:1035:31)     @ promise.promise.promisedispatch (c:\users\username\appdata\roaming\npm\node_modules\cordova\node_modules\q\q.js:741:41)     @ c:\users\username\appdata\roaming\npm\node_modules\cordova\node_modules\q\q.js:557:44     @ flush (c:\users\username\appdata\roaming\npm\node_modules\cordova\node_modules\q\q.js:108:17)     @ process._tickcallback (node.js:355:11)     @ function.module.runmain (module.js:503:11)     @ startup (node.js:129:16) 

my android home:

c:\>echo %android_home%

c:\program files (x86)\android\android-sdk

there open issue on github

and workaround using rename after_prepare folder


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -