TypeError: Cannot read property ‘then’ of undefined
at Object.run (/Users/richardshergold/.npm-packages/lib/node_modules/ionic/lib/cli.js:135:14)
at Object. (/Users/richardshergold/.npm-packages/lib/node_modules/ionic/bin/ionic:9:10)
at Module._compile (module.js:460:26)
at Object.Module._extensions…js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
Cannot read property ‘then’ of undefined (CLI v2.0.0-alpha.23)
Your system information:
Cordova CLI: 5.4.0
Gulp version: CLI version 3.9.0
Gulp local:
Ionic Version: 2.0.0-alpha.34
Ionic CLI Version: 2.0.0-alpha.23
Ionic App Lib Version: 2.0.0-alpha.22
ios-deploy version: 1.8.2
ios-sim version: 5.0.3
OS: Mac OS X Yosemite
Node Version: v0.12.4
Xcode version: Xcode 7.1.1 Build version 7B1005
TypeError: Cannot read property ‘then’ of undefined
at Object.run (/usr/local/lib/node_modules/ionic/lib/cli.js:135:14)
at Object. (/usr/local/lib/node_modules/ionic/bin/ionic:9:10)
at Module._compile (module.js:460:26)
at Object.Module._extensions…js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
Cannot read property ‘then’ of undefined (CLI v2.0.0-alpha.23)
Your system information:
Cordova CLI: 5.3.3
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 2.0.0-alpha.35
Ionic CLI Version: 2.0.0-alpha.23
Ionic App Lib Version: 2.0.0-alpha.22
ios-deploy version: 1.8.2
ios-sim version: 5.0.3
OS: Mac OS X Yosemite
Node Version: v0.12.7
Xcode version: Xcode 7.1.1 Build version 7B1005
While it’s not a fix for the issue itself this: https://github.com/busterc/cordova-resource-generators, provides an excellent alternative until the problem is resolved, especially since you are both on MacOS X, install is easy, and it even provides some nice additional features.