node.jsproxyyarnpkgyeomantheia

RequestError: getaddrinfo ENOTFOUND github.com


am trying to launch a theia extension using yeoman from the PowerShell but I think am facing a Proxy issue as I am using my company's network

yo theia-extension

results in

enter image description here

by the way I have defined this

git config --global http://login:password@company's_domain:port(8080)

Solution

  • I found the solution to my issue. I made a mistake by installing yarn multiple times, first with scoop then with npm. So, even after setting the Proxy correctly, when executing the command, it will be confused between the two versions. That's what I have understood.


    By the way, here's how to set yarn behind proxy:

    yarn config set YARN_HTTPS_PROXY=http://username:password@host:port    //most likely 8080
    yarn config set YARN_HTTP_PROXY=http://http://username:password@host:port   //host/domaine url