To create mobilespec from scratch use these commands (as Administrator):
Note: There should not be any spaces in the root path!
git clone https://github.com/apache/cordova-mobile-spec
cd cordova-mobile-spec\createmobilespec\
npm install
cd ..\..
git clone https://git-wip-us.apache.org/repos/asf/cordova-coho.git
cd cordova-coho\
npm install
cd ..\
.\cordova-coho\coho repo-clone -r mobile-spec -r plugin-test-framework -r cli -r lib -r plugman -r windows -r js -r plugins
mkdir cordova-cli\node_modules
cd cordova-lib\cordova-lib
npm install
cd ..\..
cd cordova-cli\node_modules
mklink /D cordova-lib ..\..\cordova-lib\cordova-lib
cd ..\..
cordova-coho\coho npm-link
cd cordova-cli
npm install
cd ..
node cordova-mobile-spec\createmobilespec\createmobilespec.js --windows mobilespec
msg "%username%" mobilespec created!
Or in one command:
git clone https://github.com/apache/cordova-mobile-spec && cd cordova-mobile-spec\createmobilespec\ && npm install && cd ..\.. && git clone https://git-wip-us.apache.org/repos/asf/cordova-coho.git && cd cordova-coho\ && npm install && cd ..\ && .\cordova-coho\coho repo-clone -r mobile-spec -r plugin-test-framework -r cli -r lib -r plugman -r windows -r js -r plugins && mkdir cordova-cli\node_modules && cd cordova-lib\cordova-lib && npm install && cd ..\.. && cd cordova-cli\node_modules && mklink /D cordova-lib ..\..\cordova-lib\cordova-lib && cd ..\.. && cordova-coho\coho npm-link && cd cordova-cli && npm install && cd .. && node cordova-mobile-spec\createmobilespec\createmobilespec.js --windows mobilespec && msg "%username%" mobilespec created!
The last command is optional - it just alerts when the process ends succesfully (or not). The whole processing takes about 8 minutes on my machine.
After you have all repos cloned you can create another mobilespec with command:
node cordova-mobile-spec\createmobilespec\createmobilespec.js --wp8 --android mobilespec2