Skip to content

Git and Yarn Issues (and how to solve them)

Julia Afeltra edited this page Apr 19, 2018 · 1 revision

Debugging git issues

  • The following can be used around any git command GIT_TRACE=1 GIT_CURL_VERBOSE=1 git pull --verbose

Keep getting prompts for username and password (or access denied

  • Make sure ssh key is on github
  • Make sure your version of git is up to date

Long loading time for git pull or clone (but no error)

  • Make sure your proxy is set up correctly
  • In a console set up git proxy by typing:

git config --global http.proxy <company proxy>

git config --global https.proxy <company proxy>

*Set system variables

HTTP_PROXY = <company proxy>

HTTPS_PROXY = <company proxy>

Debugging Yarn issues

If yarn gives an error refusing to connect, it could also be related to the proxy.

To set up Yarn proxy:

yarn config set proxy <company proxy>

yarn config set https-proxy <company proxy>

Ask a member of the team for the company proxy

Clone this wiki locally