Skip to content

Instantly share code, notes, and snippets.

@hearimm
Last active November 23, 2017 05:20
Show Gist options
  • Select an option

  • Save hearimm/20fd37eaadcae0ccba5ed386d7fa5b48 to your computer and use it in GitHub Desktop.

Select an option

Save hearimm/20fd37eaadcae0ccba5ed386d7fa5b48 to your computer and use it in GitHub Desktop.
[NPM&GIT] PROXY SETTING

proxy server check

netstat -ban

This will provide a list of connections made with the process id of each process.

Go to Task Manager, and select View/Select Columns and enable PID (Process Identifier).

Look for the PID of iexplore.exe in the list returned by netstat -ban This will reveal the proxy ip and port.

https://superuser.com/a/346376

npm proxy setting

npm install 실행시에 Proxy 환경일 경우 제대로 설치가 안되는 경우가 있다.

이때에는 다음과 같이 npm config 명령을 통해 Proxy 설정이 필요하다.

예제

npm config set proxy http://111.111.111.111:8081
npm config set https-proxy https://111.111.111.111:8081
npm config set strict-ssl false
npm config set registry http://registry.npmjs.org/

npm 설정값은 다음 명령으로 확인가능하다.

npm config list

설정된 값은 ~/.npmrc 파일에 저장되어 있다.

출처: http://leechwin.tistory.com/entry/NPM-Proxy-설정 [Library of developer]

git proxy settings

I had the same error because I was using proxy.

As the answer is given but in case you are using proxy then please set your proxy first using these commands:

git config --global http.proxy http://proxy_username:proxy_password@proxy_ip:port
git config --global https.proxy https://proxy_username:proxy_password@proxy_ip:port

https://stackoverflow.com/a/31044011/3820817

Had this problem after install Git Extensions v3.48.

Tried to install mysysgit again but same problem.

At the end, had to disable (please consider security implications!) Git SSL verification with:

git config --global http.sslVerify false

but if you have a domain certificate better add it to (Win7)

C:\Program Files (x86)\Git\bin\curl-ca-bundle.crt

https://stackoverflow.com/a/27104621/3820817

git proxy setting example

doksul.id@NO-DOKSUL-ID01 MINGW64 /c/dev/nodejs_proj
$ git config --global http.proxy http://xx.xx.xxx.x:8080/

doksul.id@NO-DOKSUL-ID01 MINGW64 /c/dev/nodejs_proj
$ git config --global https.proxy http://xx.xx.xxx.x:8080/

doksul.id@NO-DOKSUL-ID01 MINGW64 /c/dev/nodejs_proj
$ git clone http://github.com/hearimm/typescript-maru-update.git
Cloning into 'typescript-maru-update'...
fatal: unable to access 'http://github.com/hearimm/typescript-maru-update.git/': SSL certificate problem: unable to get local issuer certificate

doksul.id@NO-DOKSUL-ID01 MINGW64 /c/dev/nodejs_proj
$ git config --global http.sslVerify false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment