Getting an error while installing for android platform in phonegap, have set npm config set proxy http://proxydomain:port/ and npm config set registry http://registry.npmjs.org/ also. Checked android path source in env variable. Kindly let me how can I resolve it. Thank you.
C:\cordovaTest>cordova platforms add android
npm http GET https://registry.npmjs.org/cordova-android/3.7.1 TypeError: Request path contains unescaped characters. at new ClientRequest (_http_client.js:73:11) at TunnelingAgent.exports.request (http.js:49:10) at TunnelingAgent.createSocket (C:\Program Files\nodejs\node_modules\cordova \node_modules\cordova-lib\node_modules\npm\node_modules\request\node_modules\tun nel-agent\index.js:117:25) at TunnelingAgent.createSecureSocket [as createSocket] (C:\Program Files\nod ejs\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\ request\node_modules\tunnel-agent\index.js:184:41) at TunnelingAgent.addRequest (C:\Program Files\nodejs\node_modules\cordova\n ode_modules\cordova-lib\node_modules\npm\node_modules\request\node_modules\tunne l-agent\index.js:80:8) at new ClientRequest (_http_client.js:154:16) at Object.exports.request (http.js:49:10) at Object.exports.request (https.js:136:15) at Request.start (C:\Program Files\nodejs\node_modules\cordova\node_modules\ cordova-lib\node_modules\npm\node_modules\request\index.js:594:30) at Request.end (C:\Program Files\nodejs\node_modules\cordova\node_modules\co rdova-lib\node_modules\npm\node_modules\request\index.js:1186:28)
OK, i finally found a solution : downgrade nodejs to 0.10.29 version
and it's running now !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With