Can’t find the module? Which ‘- Cordova Android

I am trying to build my cordova build by executing the following commands

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

Similar to the answer to this question, my solution is

< 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

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3788 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.