Cordova 4.3.0 - build command returns error Cannot find module 'Q'

MeV

After updating cordova to version 4.3.0 the command:

cordova build

returns the following error:

    module.js:340
    throw err;
          ^
Error: Cannot find module 'Q'
    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)
    at Object.<anonymous> (/Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/lib/check_reqs.js:25:13)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
ERROR building one of the platforms: Error: /Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/build: Command failed with exit code 8
You may not have the required environment or OS to build this project
Error: /Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/build: Command failed with exit code 8
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:753:16)
    at Process.ChildProcess._handle.onexit (child_process.js:820:5)

I have already tried to remove and add the platform ios but nothing changes.

I have tried to run:

sudo npm install -g cordova / sudo npm install cordova
sudo npm install -g Q / sudo npm install Q

but nothing changes.

Any help? Thank you very much

MeV

There was a bug and I have released a patch to it:

Apache Cordova ios - Git Repository

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Cordova returns Error: Cannot find module 'external-editor'

Ionic Cordova Build prod: Cannot find module “.” - Typescript version >3

Raspberry Pi 4: Error: Cannot find module 'sqlite3'

Cordova 8.1.1 android build: cannot find module xcode

ionic cordova build android Cannot find module '../pages/Wallet/'

Error : cannot find module './commands/0'

Cordova can't add plugin: Error: Cannot find module 'unorm'

Module build failed: Error: Cannot find module 'node-sass'

Error: Cannot find module '/app/__sapper__/build' on Cloud Build

I am getting error - Error: cannot find module 'cordova-common' when installing Cordova

Cannot find module '../build/Release/opencv4nodejs

Webpack migration 3 -> 4: Error: Cannot find module 'webpack/lib/optimize/CommonsChunkPlugin'

Error: Cannot find module '../build/Release/bson' on Mac

Ionic build error Cannot find module './scheduler/Action'

Ionic 3: Build in “prod” mode: Cannot find module “.”

error Cannot find module 'semver' in (npm run dev) command

Webpack command throws error: Cannot find module 'webpack'

Error: Cannot find module './'

ng build cannot find module

Gulp - throw err cannot find module 'q'

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'build\app' imported from build\server.js

Netlify cannot find build command

Typescript, Firebase, Cordova: Cannot find module for 'firebase'

ERROR in ./src/styles.scss .. Module build failed: Error: Cannot find module 'node-sass'

Cannot find name 'cordova'. ionic build ios

Error: "Cannot find module" when cloning Ionic 4 component with StencilJS

Error: Cannot find module 'symbol-observable' in Ionic 4

Build error "Cannot find name 'Record'" with bootstrap 4

Ionic 3 Angular 4 Cannot find module `jsonwebtoken`