Is there a way to make npm install (the command) to work behind proxy?

前端 未结 29 1409
隐瞒了意图╮
隐瞒了意图╮ 2020-11-22 08:08

Read about a proxy variable in a .npmrc file but it does not work. Trying to avoid manually downloading all require packages and installing.

29条回答
  •  南方客
    南方客 (楼主)
    2020-11-22 08:33

    when I give without http/http prefix in the proxy settings npm failed even when the proxy host and port were right values. It worked only after adding the protocol prefix.

提交回复
热议问题