TypeError: Request path contains unescaped characters

前端 未结 2 1047
礼貌的吻别
礼貌的吻别 2020-12-25 12:03

I try to install node.js modules using:

npm install express

but I get this error:

npm http GET https://registry.npmjs.org/e         


        
相关标签:
2条回答
  • 2020-12-25 12:55

    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.

    0 讨论(0)
  • 2020-12-25 13:00

    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)

    0 讨论(0)
提交回复
热议问题