title: How do I install Laravel 6.x UI Components?
body: <p>Laravel 6.x does come with UI components installed. </p>
  
  <p>The commands I tried were:</p>
  
  <pre><code>composer require laravel/ui --dev
  
  php artisan ui vue --auth
  </code></pre>
  
  <p>but when I tried the first command, the following error occurred:</p>
  
  <pre><code>Installation failed, reverting ./composer.json to its original content.
  
  
    [Composer\Downloader\TransportException]                                     
    The "http://repo.packagist.org/p/dnoegel/php-xdg-base-dir%2413f0252465cdc3c  
    27cde69055504a5a15fac72d5202de71c218bb397117734c7.json" file could not be d  
    ownloaded: php_network_getaddresses: getaddrinfo failed: nodename nor servn  
    ame provided, or not known                                                   
    failed to open stream: php_network_getaddresses: getaddrinfo failed: nodena  
    me nor servname provided, or not known   
  </code></pre>
  
  <p>What is the correct command(s) in order to install Laravel 6.x UI components?</p>