node.js - ERROR: executing command 'ant' - After installation and setting ANT_HOME -
after wrestling environment variables proper directory set, can version with:
c:\projects\testproj>ant -version apache ant(tm) version 1.8.4 compiled on may 22 2012 ant appears working:
c:\projects\testproj>ant buildfile: build.xml not exist! build failed i still error when try:
c:\projects\testproj>cordova -d platform add android cordova library "android" exists. no need download. continuing. checking if platform "android" passes minimum requirements... creating android project... running command: c:\users\administrator\.cordova\lib\android\cordova\3.4.0\bin\c reate.bat --cli c:\projects\testproj\platforms\android com.company.testproj testproj c:\users\administrator\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.j s:126 throw e; ^ error: error : executing command 'ant', make sure have ant installed , add ed path. from of posts have read, issue ant_home, appears have part of tackled. edit i've installed ant 1.9.3 program files, , bin resides in: edit changed ant, instead of apache-ant-1.9.3-bin\apache-ant-1.9.3
c:\program files\ant echo home:
c:\projects\testproj>echo %ant_home% c:\program files\ant and of course have %ant_home%\bin in path. identifying issue appreciated.
i think path use ant_home wrong. c:\users\administrator\appdata\roaming\npm\node_modules\ant\ant seems path ant npm module not ant command.
ant command more somewhere in program files. in cmd, run where ant know in path ant found , use path ant_home. (in folder should see ant, ant.cmd , ant.bat)
after further investigation, think problem caused half cordova not correctly checking node errors , half because of registry setting in computer (a cmd autorun parameter).
you can check answers in posts more info:
check if have registry key hkcu\software\microsoft\command processor\autorun
Comments
Post a Comment