function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JeremyWJeremyW 

New mobile trailhead errors

https://developer.salesforce.com/trailhead/mobile_sdk_hybrid/mobilesdk_hybrid_getting_started

When I followed these directions, I got errors.   
npm -g install cordova

Installs the latest version of cordova which is doesn't work with SFDC.   

Cordova 4.0 platform has a slew of underlying architecture changes that make it incompatible with the existing Mobile SDK out of the box. Classes have been renamed and moved around. Also, Cordova 4.0 requires the usage of their whitelist plugin for any network requests.
In short, the current version of Mobile SDK won't work with Cordova 4.0. Any 3.x version of Cordova should work fine.



 
akhilesh_sfdcakhilesh_sfdc
Thanks Jeremy for pointing this out. Looks like the latest cordova CLI v5 defaults to Cordova-Android v4.0.
We are updating the documentation to mention that SDK requires CLI 4.3.1, which uses Cordova-Android v3.7.2. Cordova has currently a mess of versions.