cordova -d build android
But I found it by mistake.
module.js:340
throw err;
Error: Cannot find module'which'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364 :17)
at require (module.js:380:17)
Who knows the reason? I checked that there is my ANT_HOME/ANDROID_HOME in my path, but I am not sure what is the reason behind the error.
By the way, I am running Windows 7 64-bit
< pre>$cordova platform remove android
$cordova platform add android
I am trying to build my cordova build by executing the following commands
cordova -d build android
But I found out by mistake.
module.js:340< br />throw err;
Error: Cannot find module'which'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module. js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
Who knows the reason? I checked that there is my ANT_HOME/ANDROID_HOME in my path, but I am not sure what is the reason behind the error.
By the way, I am running Windows 7 64-bit
Similar to the answer to this question, my solution is
$cordova platform remove android
$ cordova platform add android