I newer versions of yarn (mine is 4.1.1) you need to create a .yarnrc.yml file and set the npmRegistryServer config. Example:
yarn
.yarnrc.yml
npmRegistryServer
.yarnrc.yml:
npmRegistryServer: https://npm.my-company.com