xcode – Cordova 4.3.0 – 构建命令返回错误找不到模块’Q’

前端之家收集整理的这篇文章主要介绍了xcode – Cordova 4.3.0 – 构建命令返回错误找不到模块’Q’前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
将cordova更新到版本4.3.0后,命令:
  1. cordova build

返回以下错误

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

我已经尝试删除添加平台ios但没有任何变化.

我试图运行:

  1. sudo npm install -g cordova / sudo npm install cordova
  2. sudo npm install -g Q / sudo npm install Q

但没有变化.

有帮助吗?
非常感谢你

解决方法

有一个错误,我已经发布了一个补丁:

Apache Cordova ios – Git Repository

猜你在找的iOS相关文章