title: Yarn: Error An unexpected error occurred: Request failed \"404 Not Found\
body: <p>I´ve got an issue when I run my program with Yarn.</p>
  
  <pre><code>error An unexpected error occurred: "https://npm.pkg.github.com/download/{.../packagename}: Request failed \"404 Not Found\"".
  </code></pre>
  
  <p>I cloned a GitHub-Repo and installed NodeJS, npm, and Yarn.</p>
  
  <p>I also create a personal access token at GitHub. And configured the registry with:</p>
  
  <pre><code>npm login --registry=https://npm.pkg.github.com
  Username: USERNAME
  Password: TOKEN
  Email: PUBLIC-EMAIL-ADDRESS
  </code></pre>
  
  <pre><code>info yarn config
  {
    'version-tag-prefix': 'v',
    'version-git-tag': true,
    'version-commit-hooks': true,
    'version-git-sign': false,
    'version-git-message': 'v%s',
    'init-version': '1.0.0',
    'init-license': 'MIT',
    'save-prefix': '^',
    'bin-links': true,
    'ignore-scripts': false,
    'ignore-optional': false,
    registry: 'https://registry.yarnpkg.com',
    'strict-ssl': false,
    'user-agent': 'yarn/1.22.4 npm/? node/v13.8.0 darwin x64',
    lastUpdateCheck: 1585820467684
  }
  info npm config
  {
    '//npm.pkg.github.com/:_authToken': `{TOKEN}`,
    'always-auth': true,
    `@ { VALUE }:registry`: 'https://npm.pkg.github.com/'
  }
  </code></pre>
  
  <p>Environment</p>
  
  <ul>
  <li>Node Version: 13.8.0</li>
  <li>npm Version: 6.13.6</li>
  <li>Yarn Version: 1.22.4</li>
  </ul>