• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
midnight_96
博客园    首页    新随笔    联系   管理    订阅  订阅

npm设置取消代理

  在内网的情况下使用代理访问外网的时候,NPM也需要配置外网才可使用。


设置Proxy

    
        npm config set proxy=‘代理地址’
        npm config set registry=http://registry.npmjs.org
    

关于https

    
         npm config set https-proxy http://server:proxy
    

Proxy用户名和密码

    
        npm config set proxy http://username:password@server:port
        npm config set proxy https-proxy http://username:password@server:port
    

取消Proxy

    
        npm config delete proxy
        npm config delete https-proxy
    
posted @ 2020-06-07 09:15  midnight丶dd  阅读(136)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3