4 Replies Latest reply on Sep 2, 2016 8:28 AM by chibuikemo62424202

    Phonegap build fails building (Error: Cannot find module 'cordova' )

    mkih40437034 Level 1

      Hi,

      today Phonegap Build fails building my app. The error that appears is:

       

      Error - Plugin error (you probably need to remove plugin files from your app): Fetching plugin "cordova-plugin-app-preferences@0.7.7" via npm Installing "cordova-plugin-app-preferences" at "0.7.7" for ios Failed to install 'cordova-plugin-app-preferences':Error: Cannot find module 'cordova' at Function.Module._resolveFilename (module.js:337:15) at Function.Module._load (module.js:287:25) at Module.require (module.js:366:17) at require (module.js:385:17) at Context.requireCordovaModule (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/hooks/Context.j s:77:12) at module.exports (/private/tmp/gimlet/70160826686040/2156299/project/cordova/plugins/cordova-plugin-app-pr eferences/bin/lib/android.js:11:13) at module.exports (/private/tmp/gimlet/70160826686040/2156299/project/cordova/plugins/cordova-plugin-app-pr eferences/bin/after_plugin_install.js:9:37) at runScriptViaModuleLoader (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/hooks/HooksRunn er.js:187:18) at runScript (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/hooks/HooksRunn er.js:165:16) at /usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/hooks/HooksRunne r.js:133:20 Cannot find module 'cordova' - You can fix this here

       

      I saw another thread that a user has the same problem with me:Cannot find module 'cordova'

       

      @PGB Team Please let us know when the issue is fixed. Thank you.