Cordova fails on a fresh Mojave installation - google-maps

I installed a fresh Mojave to find this error with my build and I am not sure how to debug this, seems it's coming out of
cordova-plugin-googlemaps/PluginLocationService.m
cordova run ios --debug --verbose
The following build commands failed:
CompileC /Users/me/Library/Developer/Xcode/DerivedData/app-bdpokdmgnlhxvrfpkwhgoykdgckc/Build/Intermediates.noindex/app.build/Debug-iphonesimulator/app.build/Objects-normal/x86_64/PluginCircle.o app/Plugins/cordova-plugin-googlemaps/PluginCircle.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/me/Library/Developer/Xcode/DerivedData/app-bdpokdmgnlhxvrfpkwhgoykdgckc/Build/Intermediates.noindex/app.build/Debug-iphonesimulator/app.build/Objects-normal/x86_64/PluginLocationService.o app/Plugins/cordova-plugin-googlemaps/PluginLocationService.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
CordovaError: Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args: -xcconfig,/Users/me/Documents/app/platforms/ios/cordova/build-debug.xcconfig,-workspace,app.xcworkspace,-scheme,app,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/me/Documents/app/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/me/Documents/app/platforms/ios/build/sharedpch'
ionic info
Ionic:
ionic (Ionic CLI) : 4.10.3
Ionic Framework : ionic-angular 3.9.2
#ionic/app-scripts : 3.2.0
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib#8.1.1)
Cordova Platforms : ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, (and 9 other plugins)
System:
NodeJS : v11.10.0 (/Users/me/.nvm/versions/node/v11.10.0/bin/node)
npm : 6.7.0
OS : macOS Mojave
Xcode : Xcode 10.1 Build version 10B61

Solution - install missing CocoaPods
cd platform/ios
pod install

Related

Jruby version suitable for OpenJDK 8 (Zulu JDK)

I am looking for an advisable version of JRuby that supports OpenJDK-8 (Zulu-JDK) to run on a Rails project.
Rails version- 4.0.13.
All versions of JRuby since version 9.2.0.0 will run on JDK 8. Since Zulu 8 is a build of OpenJDK 8 that means any appropriate JRuby version will run on Zulu 8.
Follow up question (using answer section to get better code formatting then commenting on the answer above).
I'm trying to get JRuby > 9.2.0.0 running Zulu 8 for MacOS ARM 64-bit (M1 chip).
I did a reinstall of the JRuby versions after installing that JDK.
$ rvm list
jruby-1.7.27 [ x86_64 ]
=> jruby-9.2.13.0 [ aarch64 ]
Check ruby version and try irb:
$ ruby -v
jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc OpenJDK 64-Bit Server VM 25.302-b08 on 1.8.0_302-b08 +jit [darwin-aarch64]
$ irb
NotImplementedError: fstat unimplemented unsupported or native support failed to load; see https://github.com/jruby/jruby/wiki/Native-Libraries
initialize at org/jruby/RubyIO.java:1015
open at org/jruby/RubyIO.java:1156
initialize at /Users/rrickerts/.rvm/rubies/jruby-9.2.13.0/lib/ruby/stdlib/irb/input-method.rb:141
initialize at /Users/rrickerts/.rvm/rubies/jruby-9.2.13.0/lib/ruby/stdlib/irb/context.rb:70
initialize at /Users/rrickerts/.rvm/rubies/jruby-9.2.13.0/lib/ruby/stdlib/irb.rb:410
start at /Users/rrickerts/.rvm/rubies/jruby-9.2.13.0/lib/ruby/stdlib/irb.rb:381
<main> at /Users/rrickerts/.rvm/rubies/jruby-9.2.13.0/bin/irb:13

Can't update to the latest version of cordova-ios

My app, built with Ionic and Cordova, includes the plugin GoogleMaps version 2.6.2 (the most recent), but it has not been loaded on iOS for a month, and Android still works.
I only have taken this product from a colleague and I am a total beginner in terms of Cordova, Ionic and npm. In any case the error is that the plugin is no longer installed (as my console tells me in xCode). When I try to update Cordova-ios to the latest version (ionic cordova platform update ios), I only get the error message
> cordova platform update ios
Using cordova-fetch for cordova-ios#^5.0.0
Failed to fetch platform cordova-ios#^5.0.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name / version / URL.
Error: npm: Command failed with exit code 1 Error output:
npm WARN # ionic-native / google-maps # 3.10.3 requires a peer of # ionic-native / core # ^ 3.6.0 but none is installed. You must install peer dependencies yourself.
npm WARN # ngx-translate / core # 9.1.1 requires a peer of #angular / core #> = 5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN The package # types / node is included as both a dev and production dependency.
npm ERR! path /path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim
npm ERR! code EEXIST
npm ERR! Refusing to delete /path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim: is outside /path/to/app/node_modules / cordova-ios / node_modules / ios-sim and not a link
npm ERR! File exists: /path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim
npm ERR! Move it away, and try again.
npm ERR! A complete log of this can be found in:
npm ERR! /path/to/app/.npm/_logs/2019-05-23T06_41_36_667Z-debug.log
[ERROR] An error occurred while running subprocess cordova.
        
        cordova update ios exited with exit code 1.
        
        Re-running this command with the --verbose flag may provide more information.
What does that mean exactly? I wanted to uninstall the iOS platform (ionic cordova platform remove ios) and add new ones (cordova platform add ios#5.0.0), but already when I uninstall I get the following error:
ionic cordova platform remove ios
> cordova platform remove ios --save
Removing ios from cordova.platforms array in package.json
Error: npm: Command failed with exit code 1 Error output:
npm WARN #ionic-native/google-maps#3.10.3 requires a peer of #ionic-native/core#^3.6.0 but none is installed. You must install peer dependencies yourself.
npm WARN #ngx-translate/core#9.1.1 requires a peer of #angular/core#>=5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN The package #types/node is included as both a dev and production dependency.
npm ERR! path /path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim
npm ERR! code EEXIST
npm ERR! Refusing to delete /path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim: is outside /path/to/app/node_modules/cordova-ios/node_modules/ios-sim and not a link
npm ERR! File exists: /path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim
npm ERR! Move it away, and try again.
npm ERR! A complete log of this run can be found in:
npm ERR! /path/to/app/.npm/_logs/2019-05-23T07_05_52_055Z-debug.log
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/src/superspawn.js:125:23)
at ChildProcess.emit (events.js:196:13)
at maybeClose (internal/child_process.js:1011:16)
at Socket.<anonymous> (internal/child_process.js:416:11)
at Socket.emit (events.js:196:13)
at Pipe.<anonymous> (net.js:586:12) {
stderr: 'npm WARN #ionic-native/google-maps#3.10.3 requires a peer of ' +
'#ionic-native/core#^3.6.0 but none is installed. You must install peer ' +
'dependencies yourself.\nnpm WARN #ngx-translate/core#9.1.1 requires a ' +
'peer of #angular/core#>=5.0.0 but none is installed. You must install ' +
'peer dependencies yourself.\nnpm WARN The package #types/node is ' +
'included as both a dev and production dependency.\n\nnpm ERR! path ' +
'/path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim\n' +
'npm ERR! code EEXIST\nnpm ERR! Refusing to delete ' +
'/path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim: ' +
'is outside ' +
'/path/to/app/node_modules/cordova-ios/node_modules/ios-sim ' +
'and not a link\nnpm ERR! File exists: ' +
'/path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim\n' +
'npm ERR! Move it away, and try again.\n\nnpm ERR! A complete log of this ' +
'run can be found in:\nnpm ERR! ' +
'/path/to/app/.npm/_logs/2019-05-23T07_05_52_055Z-debug.log\n',
code: 1
}
[ERROR] An error occurred while running subprocess cordova.
cordova platform remove ios --save exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
I have installed the following plugins:
> cordova plugin ls
cordova-plugin-datepicker 0.9.3 "DatePicker"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-googlemaps 2.6.2 "cordova-plugin-googlemaps"
cordova-plugin-ionic-webview 4.0.1 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-sqlite-storage 2.6.0 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 1.11.1 "PushPlugin"
What exactly do I have to do to update cordova-ios to the latest version? What else do you need for information that I could give you? My Mac already has the latest operating system.
EDIT:
I ran rm -Rf platforms / node_modules / && npm install && ionic cordova platform add ios # latest and now I get the following output on the console.
> fsevents#1.2.9 install / path / to / app / node_modules / fsevents
> node install
node-pre-gyp WARN Using request for node-pre-gyp https download
[fsevents] Success: "/path/to/app/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node" is installed via remote
> node-sass#4.12.0 install / path / to / app / node_modules / node-sat
> node scripts / install.js
Cached binary found at /path/to/app/.npm/node-sass/4.12.0/darwin-x64-72_binding.node
> uglifyjs-webpack-plugin#0.4.6 postinstall / path / to / app / node_modules / uglifyjs-webpack-plugin
> node lib / post_install.js
> node-sass#4.12.0 postinstall / path / to / app / node_modules / node-sass
> node scripts / build.js
Binary found at /path/to/app/node_modules/node-sass/vendor/darwin-x64-72/binding.node
Testing binary
Binary is fine
npm WARN The package # types / node is included as both a dev and production dependency.
added 1330 packages from 1442 contributors in 63.504s
> cordova platform add ios # latest --save
Using cordova-fetch for cordova-ios # latest
Adding ios project ...
Creating Cordova project for the iOS platform:
Path: platforms / ios
Package: com.gpsno
Name: GPS-No.com
iOS project created with cordova-ios#5.0.1
Installing "cordova-plugin-datepicker" for ios
Installing "cordova-plugin-device" for ios
Installing "cordova-plugin-geolocation" for ios
Installing "cordova-plugin-googlemaps" for ios
"framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag.
cordova-plugin-googlemaps depends on GoogleMaps # ~> 2.7.0, which conflicts with another plugin. GoogleMaps # ~> 3.1.0 is already installed and was not overwritten.
Running command: pod install --verbose
      Official document https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/README.md Please consider buying beer for us 🍺 https://github.com/mapsplugin/ cordova-plugin-google maps # buy-us-a-beer
    
Installing "cordova-plugin-ionic-webview" for ios
Installing "cordova-plugin-splashscreen" for ios
Installing "cordova-plugin-statusbar" for ios
Installing "cordova-plugin-whitelist" for ios
Installing "cordova-sqlite-storage" for ios
Failed to install 'cordova-sqlite-storage': CordovaError: Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
    at Context.requireCordovaModule (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/Context.js:57:15)
    at module.exports (/path/to/app/plugins/cordova-sqlite-storage/scripts/beforePluginInstall.js:13:21)
    at runScriptViaModuleLoader (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:181:32)
    at runScript (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:16)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:125:20
    at processTicksAndRejections (internal / process / task_queues.js: 89: 5)
Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
[ERROR] An error occurred while running subprocess cordova.
        
        cordova platform add ios # latest --save exited with exit code 1.
        
        Re-running this command with the --verbose flag may provide more information.
It looks like everything had worked out. Do I have to worry about the message
cordova-plugin-googlemaps depends on GoogleMaps # ~> 2.7.0, which conflicts with another plugin. GoogleMaps # ~> 3.1.0 is already installed and was not overwritten.
If so what can I do or remove?
How can I solve the problem
Installing "cordova-sqlite-storage" for ios
Failed to install 'cordova-sqlite-storage': CordovaError: Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
Installing "cordova-sqlite-storage" for ios
Failed to install 'cordova-sqlite-storage': CordovaError: Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
This is because you have cordova#9.0.0 CLI installed which removed support for use of requireCordovaModule by 3rd party plugins, but you have an old version of cordova-sqlite-storage plugin installed which makes use of requireCordovaModule. So you need to update your version of cordova-sqlite-storage plugin:
cordova plugin rm cordova-sqlite-storage && cordova plugin add cordova-sqlite-storage#latest
cordova-plugin-googlemaps depends on GoogleMaps # ~> 2.7.0, which conflicts with another plugin. GoogleMaps # ~> 3.1.0 is already installed and was not overwritten.
Again probably due to an outdated version of cordova-plugin-googlemaps so update it:
cordova plugin rm cordova-plugin-googlemaps --nosave && cordova plugin add cordova-plugin-googlemaps#latest
Note the use of --nosave option when removing the plugin to preserve any plugin variables containing API keys.
You should also check and update the other plugins in your project. An easy way to do this is using the cordova-check-plugins tool:
npm install -g cordova-check-plugins
cordova-check-plugins --unconstrain-versions --update=auto
# or --update=interactive for interactive update process
Disclaimer: I am the author of cordova-check-plugins
Be aware when updating plugins that major version updates may contain breaking changes to APIs which your app makes use of, so you should be aware of this:
checkout the changelog or commit history of plugins for which you are updating the major version and make any necessary API changes in your app.

Exception: unknown error: Chrome version must be >= 53.0.278 5.0

I am trying to setup e2e test using protractor, keep on getting Chrome version must be >= 53.0.278 5.0 error.
Environment:
OS: Windows 7(64 bit)
Chrome: 44(I am not allowed to upgrade to latest version)
Protractor: 5.0.0
ChromeDriver: 2.26
SeleniumStandalone: 2.53.1
Thanks.
ChromeDriver 2.26 supports Chrome v53-55 as described here.
Downgrade your ChromeDriver with the command webdriver-manager update --versions.chrome 2.20. This would install ChromeDriver 2.20 which is compatible with Chrome v43-48.

Ionic2 google maps Execution failed for task ':transformClassesWithDexForDebug'

my project woks good without google maps plugin , when i install it and try to build i get:
* What went wrong:
Execution failed for task ':transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException:
java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define
Lcom/google/android/gms/iid/zzc;
when i create a new project and install the plugin it runs well so i think one of my plugins conflict with it
ionic info:
global packages:
#ionic/cli-utils : 1.4.0
Cordova CLI : 7.0.1
Ionic CLI : 3.4.0
local packages:
#ionic/app-scripts : 1.3.6
#ionic/cli-plugin-cordova : 1.4.0
#ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.1.1
System:
Node : v6.10.3
OS : Windows 10
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 3.10.10
cordova plugin list:
cordova-plugin-console 1.0.5 "Console"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.3 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-sqlite-storage 2.0.4 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 1.10.4 "PushPlugin"
plugin.google.maps 1.3.9 "phonegap-googlemaps-plugin"
{}
Try installing version 1.3.9. Worked for me:
cordova plugin add cordova-plugin-googlemaps#1.3.9 --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"

NEW CLI INSTALL - does not work... tried Alloy and Classic

Summary:
2016-06-24T12:28:18.008Z | ERROR | An uncaught exception was thrown!
Cannot read property 'options' of undefined
2016-06-24T12:28:18.011Z | ERROR | Cannot read property 'options' of undefined
Details:
brand new installation, Windows 10 64bit
followed: https://docs.appcelerator.com/platform/latest/#!/guide/Appcelerator_CLI_Tasks
Steps I took:
Downloaded the NODE installer (URL on your downloads page):
node --version
v4.4.5
npm install appcelerator -g
npm WARN installMany request was bundled with appcelerator#4.2.6, but bundled package wasn't found in unpacked tree
npm WARN installMany chalk was bundled with appcelerator#4.2.6, but bundled package wasn't found in unpacked tree
npm WARN installMany progress was bundled with appcelerator#4.2.6, but bundled package wasn't found in unpacked tree
npm WARN installMany tar was bundled with appcelerator#4.2.6, but bundled package wasn't found in unpacked tree
npm WARN installMany which was bundled with appcelerator#4.2.6, but bundled package wasn't found in unpacked tree
npm WARN installMany debug was bundled with appcelerator#4.2.6, but bundled package wasn't found in unpacked tree
npm WARN installMany lodash was bundled with appcelerator#4.2.6, but bundled package wasn't found in unpacked tree
npm WARN installMany request was bundled with appcelerator#4.2.6, but bundled package wasn't found in unpacked tree
C:\Users\Ozz Nixon\AppData\Roaming\npm\appcelerator -> C:\Users\Ozz Nixon\AppData\Roaming\npm\node_modules\appcelerator\bin\appc
C:\Users\Ozz Nixon\AppData\Roaming\npm\appc -> C:\Users\Ozz Nixon\AppData\Roaming\npm\node_modules\appcelerator\bin\appc
appcelerator#4.2.6 C:\Users\Ozz Nixon\AppData\Roaming\npm\node_modules\appcelerator
├── which#1.0.8
├── progress#1.1.8
├── async#1.5.2
├── semver#3.0.1
├── debug#2.2.0 (ms#0.7.1)
├── chalk#0.5.1 (ansi-styles#1.1.0, escape-string-regexp#1.0.5, supports-color#0.2.0, strip-ansi#0.3.0, has-ansi#0.1.0)
├── update-notifier#0.5.0 (is-npm#1.0.0, string-length#1.0.1, chalk#1.1.3, repeating#1.1.3, semver-diff#2.1.0, configstore#1.4.0, latest-version#1.0.1)
├── tar#1.0.3 (inherits#2.0.1, block-stream#0.0.8, fstream#1.0.8)
├── request#2.72.0 (aws-sign2#0.6.0, forever-agent#0.6.1, tunnel-agent#0.4.2, oauth-sign#0.8.1, is-typedarray#1.0.0, caseless#0.11.0, stringstream#0.0.5, isstream#0.1.2, json-stringify-safe#5.0.1, extend#3.0.0, form-data#1.0.0-rc4, tough-cookie#2.2.2, node-uuid#1.4.7, qs#6.1.0, combined-stream#1.0.5, mime-types#2.1.10, aws4#1.3.2, hawk#3.1.3, bl#1.1.2, http-signature#1.1.1, har-validator#2.0.6)
└── lodash#4.11.1
appc setup
Finding latest version ...5.3.0 OK
Validating security checksum OK
Installing ... OK
Compiling platform native modules ...
└ socket.io-client/ws ... OK
└ bunyan/dtrace-provider ... OK
└ appc-ldapjs/dtrace-provider ... OK
└ chokidar/fsevents ... OK
└ chokidar/fsevents ... OK
Appcelerator Login required to continue ...
? Appcelerator ID: ozznixon#gmail.com
? Appcelerator ID: ozznixon#gmail.com
? Password: ********
Invalid Appcelerator ID and password combination.
Appcelerator Login required to continue ...
? Appcelerator ID: ozznixon#gmail.com
? Password: **************
Invalid Appcelerator ID and password combination.
Appcelerator Login required to continue ...
? Appcelerator ID: ozznixon#gmail.com
? Password: ********
This computer must be authorized before you can complete your login.
? Confirm with authorization code to Email or Phone/SMS? Email to ozznixon#gmail.com
An authorization code was sent to your email at ozznixon#gmail.com
? Please enter the authorization code you received via your email at ozznixon#gmail.com: 7015
This computer is now authorized: Windows Machine ID: 8f61c9c2-dad0-4208-9e4c-c096d20e2894
You can deauthorize this computer by logging out with appc logout
Generating Developer Certificate and Private/Public Keys...
? Do you plan on developing Titanium apps? Yes
Checking your environment...
No Mobile SDK found, downloading ...
New version available! 5.3.0.GA
Downloading http://builds.appcelerator.com/mobile-releases/5.3.0/mobilesdk-5.3.0.GA-win32.zip
100% [========================================] 0.0s
Extracting SDK to C:\ProgramData\Titanium
100% [========================================]
Setting Titanium SDK 5.3.0.GA as the default.
Titanium SDK 5.3.0.GA successfully installed!
You have the latest Titanium SDK release 5.3.0.GA
The following JDK issues were found in your environment:
JDK (Java Development Kit) not installed.
If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly set.
The JDK is required for must be manually downloaded and installed from
http://appcelerator.com/jdk.
Some issues were detected for your environment
Please review the above found issues that were detected for your environment.
You should resolve these issues before building or running a cross platform app.
You can re-run setup once they are resolved to validate.
appc setup complete!
I downloaded and installed: Java SE Development Kit 8 Update 92 (64-bit)
Then:
appc use
The following versions are available:
5.3.1-2 Not Installed
5.3.0 Installed (Latest) (Active)
5.3.0-47 Not Installed
5.3.0-43 Not Installed
5.3.0-34 Not Installed
5.2.0-265 Not Installed
5.2.2 Not Installed
5.2.0-213 Not Installed
5.2.1 Not Installed
5.2.1-12 Not Installed
5.2.0-55 Not Installed
5.2.0 Installed
5.1.0 Not Installed
5.0.4 Not Installed
5.0.3 Not Installed
5.0.2 Not Installed
5.0.1 Not Installed
5.0.0 Not Installed
4.1.3 Not Installed
4.1.2 Not Installed
4.1.1 Not Installed
4.1.0 Not Installed
5.0.0-50 Not Installed
5.0.0-40 Not Installed
4.0.2 Not Installed
4.1.0-0 Not Installed
4.0.1 Not Installed
4.0.0 Not Installed
4.0.0-rc Not Installed
1.2.123 Not Installed
0.2.285 Not Installed
0.2.283 Not Installed
0.2.282 Not Installed
0.2.276 Not Installed
0.2.273 Not Installed
0.2.255 Not Installed
0.2.247 Not Installed
0.2.246 Not Installed
0.2.242 Not Installed
0.2.241 Not Installed
0.2.230 Not Installed
0.2.229 Not Installed
0.2.228 Not Installed
0.2.227 Not Installed
0.2.226 Not Installed
0.2.225 Not Installed
0.2.224 Not Installed
0.2.223 Not Installed
0.2.222 Not Installed
0.2.221 Not Installed
0.2.220 Not Installed
0.2.219 Not Installed
0.2.218 Not Installed
0.2.217 Not Installed
0.2.216 Not Installed
0.2.215 Not Installed
0.2.214 Not Installed
0.2.213 Not Installed
0.2.212 Not Installed
0.2.210 Not Installed
0.2.209 Not Installed
0.2.208 Not Installed
0.2.207 Not Installed
0.2.204 Not Installed
0.2.203 Not Installed
0.2.201 Not Installed
0.2.200 Not Installed
0.2.199 Not Installed
0.2.198 Not Installed
0.2.198 Not Installed
0.2.197 Not Installed
0.2.196 Not Installed
0.2.195 Not Installed
0.2.192 Not Installed
0.2.191 Not Installed
0.2.187 Not Installed
0.2.186 Not Installed
0.2.185 Not Installed
0.2.183 Not Installed
0.2.182 Not Installed
0.2.181 Not Installed
0.2.181 Not Installed
0.2.180 Not Installed
0.2.179 Not Installed
0.2.178 Not Installed
0.2.177 Not Installed
0.2.176 Not Installed
0.2.175 Not Installed
0.2.174 Not Installed
0.2.173 Not Installed
0.2.172 Not Installed
0.2.170 Not Installed
0.2.169 Not Installed
0.2.101 Not Installed
0.2.101 Not Installed
0.2.101 Not Installed
0.2.100 Not Installed
0.2.99 Not Installed
0.2.98 Not Installed
0.2.97 Not Installed
Then:
appc new -t titanium --id com.jahbraids.intro -n introproj -p android
A new update (5.3.1-2) is available... Download with appc use 5.3.1-2
Appcelerator Command-Line Interface, version 5.3.0
Copyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.
*** new completed. ***
Then:
appc run
Appcelerator Command-Line Interface, version 5.3.0
Copyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.
2016-06-23T23:51:51.172Z | ERROR | An uncaught exception was thrown!
Cannot read property 'options' of undefined
2016-06-23T23:51:51.175Z | ERROR | Cannot read property 'options' of undefined
Searched, found closed ticket, and tried:
npm install -g titanium
npm WARN deprecated wrench#1.5.8: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
C:\Users\Ozz Nixon\AppData\Roaming\npm\ti -> C:\Users\Ozz Nixon\AppData\Roaming\npm\node_modules\titanium\bin\titanium
C:\Users\Ozz Nixon\AppData\Roaming\npm\titanium -> C:\Users\Ozz Nixon\AppData\Roaming\npm\node_modules\titanium\bin\titanium
titanium#5.0.9 C:\Users\Ozz Nixon\AppData\Roaming\npm\node_modules\titanium
├── async#1.4.2
├── sprintf#0.1.5
├── humanize#0.0.9
├── semver#5.0.3
├── colors#1.1.2
├── wrench#1.5.8
├── temp#0.8.3 (os-tmpdir#1.0.1, rimraf#2.2.8)
├── fields#0.1.24 (keypress#0.2.1, colors#0.6.2)
├── winston#1.0.2 (cycle#1.0.3, isstream#0.1.2, stack-trace#0.0.9, eyes#0.1.8, async#1.0.0, pkginfo#0.3.1, colors#1.0.3)
├── longjohn#0.2.9 (source-map-support#0.3.2)
├── request#2.62.0 (forever-agent#0.6.1, caseless#0.11.0, aws-sign2#0.5.0, oauth-sign#0.8.2, tunnel-agent#0.4.3, stringstream#0.0.5, isstream#0.1.2, json-stringify-safe#5.0.1, extend#3.0.0, tough-cookie#2.2.2, node-uuid#1.4.7, qs#5.1.0, combined-stream#1.0.5, mime-types#2.1.11, form-data#1.0.0-rc4, http-signature#0.11.0, bl#1.0.3, hawk#3.1.3, har-validator#1.8.0)
├── moment#2.10.6
└── node-appc#0.2.31 (xmldom#0.1.19, semver#5.0.1, node-uuid#1.4.3, adm-zip#0.4.7, diff#2.1.0, optimist#0.6.1, uglify-js#2.4.24, request#2.61.0)
Still: appc run -p android
Appcelerator Command-Line Interface, version 5.3.0
Copyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.
2016-06-23T23:57:09.690Z | ERROR | An uncaught exception was thrown!
Cannot read property 'options' of undefined
2016-06-23T23:57:09.695Z | ERROR | Cannot read property 'options' of undefined
Did Update: appc use 5.3.1-2
Before you can continue, the latest Appcelerator software update needs to be downloaded.
Finding version 5.3.1-2 ... OK
Validating security checksum OK
Installing ... OK
Compiling platform native modules ...
└ socket.io-client/ws ... OK
└ bunyan/dtrace-provider ... OK
└ appc-ldapjs/dtrace-provider ... OK
└ chokidar/fsevents ... OK
└ chokidar/fsevents ... OK
Installed!!
Still: appc run -p android
Appcelerator Command-Line Interface, version 5.3.1-2
Copyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.
2016-06-24T12:28:18.008Z | ERROR | An uncaught exception was thrown!
Cannot read property 'options' of undefined
2016-06-24T12:28:18.011Z | ERROR | Cannot read property 'options' of undefined
Thanks for sharing with us. Please run the following command in the administrative command prompt.
del -rf ~/.appcelerator
del -rf ~/.titanium
npm uninstall -g titanium
npm uninstall -g appcelerator
npm install -g appcelerator
appc use latest
appc setup
appc login
The issue you're seeing looks to be https://jira.appcelerator.org/browse/TIMOB-23480. This issue has been fixed in the latest 5.3.1 builds of the SDK. You can install this using appc ti sdk install -b 5_3_X -d.
Also for your reference my JAVA_HOME is set to C:\Program Files (x86)\Java\jdk1.7.0_80, after setting this environment variable make sure to restart your command prompt.