TypeError: Request path contains unescaped characters TypeError: Request path contains unescaped characters express express

TypeError: Request path contains unescaped characters


Set proxy from commandline.

npm config set proxy http://proxydomain:port/

If error occur yet, additional try next.

npm config set registry http://registry.npmjs.org/

These work for me.(ref http://sushichop.blogspot.jp/2013/01/npm-install.html)


Though late enough, I've bumped into this too after updating nodejs (to 4.1.1) and npm (to something like 1.4.x) on Linux.

I've tried the suggested solution, but changing the registry entry did not help in all cases.Lastly, having decided to reinstall npm, I found this update source [on npm github][1]

curl -L https://www.npmjs.org/install.sh | sh

which updated my npm to 3.3.8 and all related package installation troubles have been blown away.