开发者社区> 问答> 正文

mac 安装electron出错,走淘宝镜像也不好使?报错

报错内容:

appledeMBP:~ apple$ npm install -g nrm

npm ERR! Darwin 15.6.0

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "nrm"

npm ERR! node v4.4.4

npm ERR! npm  v2.15.1

npm ERR! code ECONNRESET

 

npm ERR! network tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:8118

npm ERR! network This is most likely not a problem with npm itself

npm ERR! network and is related to network connectivity.

npm ERR! network In most cases you are behind a proxy or have bad network settings.

npm ERR! network 

npm ERR! network If you are behind a proxy, please make sure that the

npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

 

npm ERR! Please include the following file with any support request:

npm ERR!     /Users/apple/npm-debug.log

展开
收起
爱吃鱼的程序员 2020-06-08 17:24:36 1296 0
2 条回答
写回答
取消 提交回答
  • 淘宝npm镜像站全新上线,Web界面地址:npmmirror.com/;npm 客户端使用地址:registry.npmmirror.com

    2021-09-17 14:56:02
    赞同 展开评论 打赏
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    已解决

    如何解决的啊

     

    怎么解决的啊?

    2020-06-08 17:24:48
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
15分钟打造你自己的小程序更新版 立即下载
面向多端的AliOS开放策略 立即下载
面向多端的AliOS 开放策略 立即下载