Guest User

Untitled

a guest
Oct 30th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. >npm config set proxy http://proxyhost:proxyport
  2. >npm config set https-proxy http://proxyhost:proxyport
  3.  
  4. >npm config set proxy null
  5. >npm config set https-proxy null
  6.  
  7. npm config set registry=http://registry.npmjs.org/
  8. npm config set strict-ssl false
  9.  
  10. npm config set proxy false
  11. npm cache clean
  12.  
  13. npm config rm proxy
  14. npm config rm https-proxy
  15.  
  16. npm config set proxy http://proxyhostname:proxyport
  17. npm config set https-proxy http://proxyhostname:proxyport
  18.  
  19. npm config set proxy http://USERNAME:passwd@proxyserver.co.uk:8080
  20.  
  21. env|grep -i proxy
  22.  
  23. http_proxy=http://192.168.X.X:8080/
  24. ftp_proxy=ftp://192.168.X.X:8080/
  25. socks_proxy=socks://192.168.X.X:8080/
  26. https_proxy=https://192.168.X.X:8080/
  27.  
  28. unset(http_proxy)
  29.  
  30. rm ~/.npmrc
  31.  
  32. registry=https://registry.npmjs.org/
  33. proxy=http://username:password@127.0.0.1:8888
  34. https-proxy=http://username:password@127.0.0.1:8888
  35. http-proxy=http://username:password@127.0.0.1:8888
  36. strict-ssl=false
  37. ca=null
  38.  
  39. env|grep -i proxy
  40.  
  41. HTTP-PROXY = "http://localhost:3128"
  42. HTTPS-PROXY = "https://localhost:3128"
  43. HTTPS_PROXY = "http://localhost:3128"
  44. HTTP_PROXY = "http://localhost:3128"
  45. PROXY = "http://localhost:3128"
  46. http-proxy = "http://localhost:3128"
  47. http_proxy = "http://localhost:3128"
  48. https-proxy = "https://localhost:3128/"
  49. https_proxy = "https://localhost:3128"
  50. proxy = "http://localhost:3128/"
  51.  
  52. ➜ gconftool-2 -a /system/http_proxy
  53. host = http://localhost/
  54. port = 2000
  55. use_http_proxy = false
  56. use_authentication = false
  57. authentication_password =
  58. authentication_user =
  59. ignore_hosts = [localhost,127.0.0.0/8]
  60.  
  61. gconftool-2 -t string -s /system/http_proxy/host ""
  62. gconftool-2 -u /system/http_proxy/port
  63. gconftool-2 -u /system/http_proxy/host
  64. unset http_proxy
  65.  
  66. npm install -g @angular/cli@1.7.3 --proxy "http://username:password@proxy_server:proxy_port" --registry http://registry.npmjs.org
Add Comment
Please, Sign In to add comment