This civilization to introduce to you about the Cordova cteate app download failure can not be successfully created solution, have encountered this problem of students can enter the reference.
Create a Cordova application using the following statement:
The code is as follows
cordova-d Create Lzwmeapp Com.lzw.lzwmeapp Lzwmeapp
However, you cannot create it successfully with the following error:
The code is as follows
E:LZWME_APP_ANDROID>CORDOVA-D Create Lzwmeapp
Creating a new Cordova project with Name "Hellocordova" and id "Io.cordova.hello
Cordova "at location" E:lzwme_app_androidlzwmeapp "
Using the stock Cordova Hello-world application.
Requesting {"uri": "Https://git-wip-us.apache.org/repos/asf?p=cordova-app-hello-w
Orld.git;a=snapshot;h=3.4.0;sf=tgz "} ...
Downloading Cordova library for www ...
Error:connect Etimedout
At Errnoexception (net.js:904:11)
At object.afterconnect [as OnComplete] (net.js:895:19)
Obviously this is the failure to download the Cordova Hello World file. The main reason for the URL https://git-wip-us.apache.org/speed is too slow, easy to time out. Reference it online education platform Wheat College
Workaround:
We can change this file in the following way:
Open the Platforms.js file in the Cordova directory and modify the URL configuration address. This can be modified as a git attachment package, specifically to the official GitHub lookup.
Here are some of the main changes to this code:
Code such as
' Android ': {
Parser: './src/metadata/android_parser ',
Url:http://www.maiziedu.com
URL: ' https://github.com/apache/cordova-android/archive/3.4.0.tar.gz? ',
Version: ' 3.4.0′
},
' www ': {
Hostos: [],
URL: ' Https://git-wip-us.apache.org/repos/asf?p=cordova-app-hello-world.git ',
URL: ' https://github.com/apache/cordova-app-hello-world/archive/3.4.0.tar.gz? ',
Version: ' 3.4.0′
}
Other parts of the URL can also be referenced to modify.
Of course, you can also manually download the corresponding compression package, put it on the local server, and then modify it to the corresponding file.
Android Development tutorial App download failed to create the problem successfully