IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    npm works with proxy

    Winson发表于 2022-12-12 00:36:10
    love 0

    When I try to use npm install and work with proxy, I always get the network errors as below

    The common solution that need to set the proxy with npm as below

    npm config set proxy http://ip:port
    npm config set proxy https-proxy http://ip:port

    But that’s not working for me, and finally I found that need to add one more as below

    npm config set registry http://registry.npmjs.org/
    npm set strict-ssl false

    After that it working 😀

     4 total views,  4 views today

    The post npm works with proxy appeared first on Coder Blog.



沪ICP备19023445号-2号
友情链接