Can't install anything with npm ECONNRESET without proxy

后端 未结 7 2050
眼角桃花
眼角桃花 2020-12-29 07:31

I used node.js to install some things via npm without any problems. Now I changed nothing on my settings (Win8; no proxy, internet is working) and I can\'t install anything

7条回答
  •  隐瞒了意图╮
    2020-12-29 08:07

    The following worked for me

    1. Instead of using cmd, use the "Node.js commandprompt". To do this, type node in start menu, and on the results, click on "Node.js commandprompt". This will setup the required env variables
    2. In the above shell, run the command

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

    1. Run the command

    npm install -g cordova

    1. Run the command

    npm install -g ionic

提交回复
热议问题