-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: TypeError: Request path contains unescaped char #321
Comments
@kyozatch - does this keep happening every time you run it? What did you set your proxy settings to? |
Yes everytime. I tried on an other free BOX and it works. But with my corporate proxy, it seems pretty complicated. My .npmrc file : I did set my environment variables in Windows too. This config has already been tested and works. Did i miss something else ?... |
++ cordova platform add android (downgrading node to 0.10.29 does solve the issue, but is lame) |
Did anybody come up with some solution to this problem without downgrading node? it is not a matter of proxy or environment variable - there is some problem with cordova. |
Same problem here, solved the issue downgrading node to 0.10.29 |
Same problem tried following : Tried following versions with error : |
I didn't want to downgrade node, so I found another solution somewhere in the Web: Replace the content of C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\request\node_modules\tunnel-agent with the content of this zip: https://github.com/mikeal/tunnel-agent however, you will probably need to configure the proxy settings as well: npm config set proxy http://proxy:port |
Same problem here |
Hi,
|
@geisi93 That works, thanks! |
for those who still have problems - C:\Users{USERNAME}\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\request\node_modules\tunnel-agent with the contents of with the content of this zip: https://github.com/mikeal/tunnel-agent too. |
@geisi93 you are a star! worked perfectly |
Hi , |
I have installed node v0.12.3 , cordova 5.0.0 ,npm 2.9.1 |
look at the console, there you can see the path of the tunnel-agent where the problem occurs. make sure to replace the tunnel-agent exactly in the path, that is shown in the console! |
Just try the new version of node v0.12.3, but unfortunately they haven't fixed this issue... |
Had same issue when trying to run crosswalk, dropped node version back down to 0.10.33, worked fine after that. |
I tried @DarrylD's solution. Works perfectly for me. Have a good day. |
thanks geisi93, your solution worked like a charm... |
Thanks @geisi93, works perfectly for me too :) |
@jbavari basically it works when you downgrade nodejs, so nodejs uses also an old version. but since changing the tunnel-agent in the cordova-lib solves the problem, an update to the newest version could possibly help, yes. |
how do you replace tunnel-agent on linux ? |
Can someone help me out and explain how to replace the tunnel-agent on windows 8.1. I have installed cordova and nodejs many times, but this latest version is killing me. Here is my output from my command prompt:cordova platform add wp8 npm http GET https://registry.npmjs.org/cordova-wp8/3.8.0 TypeError: Request path contains unescaped characters
uest\node_modules\tunnel-agent\index.js:117:25)
les\npm\node_modules\request\node_modules\tunnel-agent\index.js:184:41)
st\node_modules\tunnel-agent\index.js:80:8)
594:30)
86:28) |
@oneiljm I have explained it above. Just download the current tunnel agent and replace the folder in the path the error message shows |
Thanks |
Solution from @geisi93 works like a charm :P ! Thank you. |
Also worked @geisi93 's solution for me. It looks like the problem is the npm dependency of the last cordova-lib.
A newer npm version would resolve to a newer tunnel-agent version.
|
This issues still with nodejs version 0.12.4 Need install request module? or request module build-in nodejs? |
If this issue is not relevant? |
Updating the index.js file in the tunnel-agent folder worked for me with Mac OS X Yosemite 10.10.4 - sure seems like there should be a better way! Sigh. :-( |
same problem here with newest ionic with error message:
after replace the Thanks all, guys. |
Thank you very much @geisi93! |
@samurai55 still relevant, I ran into this today |
I have node 0.12.7 and had the problem. |
when build cordova project in netbeans error : TypeError: Request path contains unescaped characters. |
Hi! |
See this issue: npm/npm#4569 I wanted to use the new cordova-cli, so this is what I did:
This is needed so that ionic recognize cordova version and does not complain about version mismatching. I tried a lot of things, so beware: this could not work for you; I hope cordova and ionic will update soon though. Ciao |
@geisi93 Thanks for the solution. It worked!! |
I tried the solution provided by @geisi93, however, now I am getting below error: |
Thanks for opening the issue. It seems that issue has been resolved. I am going to close this issue but please feel free to reopen another issue if this occurs again. |
Thanks a lot +geisi93 ! That works for me, replace: with the content of this zip: |
From @Kyozatch on March 19, 2015 8:43
Type: bug
Platform: all
Hi,
I just downloaded ionic. I created the project without any problem but, when i tried "ionic platform add android" i got an error :
"npm http GET https://registry.npmjs.org/cordova-android/3.7.1
TypeError: Request path contains unescaped characters."
I was looking for a solution on google, it seems to be a proxy problem. However, I already set my proxy config and it works..
ionic : 1.3.16 cordova : 4.3.0 node : 0.12.0
Thanks
Copied from original issue: ionic-team/ionic-framework#3355
The text was updated successfully, but these errors were encountered: