title: Deploy my angular website on github pages without error but not working
body: <p>I did as instructed in <a href="https://alligator.io/angular/deploying-angular-app-github-pages/" rel="nofollow noreferrer">alligator</a>.</p>
  
  <ol>
  <li>I first did: <code>npm install -g angular-cli-ghpages</code></li>
  </ol>
  
  <pre><code>C:\Users\NEGU93\AppData\Roaming\npm\angular-cli-ghpages -&gt; C:\Users\NEGU93\AppData\Roaming\npm\node_modules\angular-cli-ghpages\angular-cli-ghpages
  C:\Users\NEGU93\AppData\Roaming\npm\ngh -&gt; C:\Users\NEGU93\AppData\Roaming\npm\node_modules\angular-cli-ghpages\angular-cli-ghpages
  npm WARN angular-cli-ghpages@0.6.2 requires a peer of @angular-devkit/architect@&gt;=0.800.0 but none is installed. You must install peer dependencies yourself.
  npm WARN angular-cli-ghpages@0.6.2 requires a peer of @angular-devkit/core@&gt;=8.0.0 but none is installed. You must install peer dependencies yourself.
  npm WARN angular-cli-ghpages@0.6.2 requires a peer of @angular-devkit/schematics@&gt;=8.0.0 but none is installed. You must install peer dependencies yourself.
  
   2. angular-cli-ghpages@0.6.2
  added 43 packages from 16 contributors in 4.064s
  
  
     ╭────────────────────────────────────────────────────────────────╮
     │                                                                │
     │      New minor version of npm available! 6.13.4 -&gt; 6.14.5      │
     │   Changelog: https://github.com/npm/cli/releases/tag/v6.14.5   │
     │               Run npm install -g npm to update!                │
     │                                                                │
     ╰────────────────────────────────────────────────────────────────╯
  </code></pre>
  
  <ol start="2">
  <li>Then I runned: <code>ng build --prod --base-href "jagustinbarrachina.github.io"</code> (My github repository I created is <a href="https://github.com/NEGU93/jagustinbarrachina.github.io" rel="nofollow noreferrer">https://github.com/NEGU93/jagustinbarrachina.github.io</a>).</li>
  </ol>
  
  <pre><code>Generating ES5 bundles for differential loading...
  ES5 bundle generation complete.
  
  chunk {0} runtime-es2015.1eba213af0b233498d9d.js (runtime) 1.45 kB [entry] [rendered]
  chunk {0} runtime-es5.1eba213af0b233498d9d.js (runtime) 1.45 kB [entry] [rendered]
  chunk {2} polyfills-es2015.690002c25ea8557bb4b0.js (polyfills) 36.1 kB [initial] [rendered]
  chunk {3} polyfills-es5.9e286f6d9247438cbb02.js (polyfills-es5) 129 kB [initial] [rendered]
  chunk {1} main-es2015.f6ff8052967ffdaf4a5b.js (main) 506 kB [initial] [rendered]
  chunk {1} main-es5.f6ff8052967ffdaf4a5b.js (main) 581 kB [initial] [rendered]
  chunk {4} styles.c29ceec637ed14ee7304.css (styles) 62.1 kB [initial] [rendered]
  Date: 2020-05-20T08:13:25.911Z - Hash: 69b194328f29a17de042 - Time: 136730ms
  
  WARNING in Exceeded maximum budget for W:/HardDiskDrive/Documentos/GitHub/Web-Development/my-website/src/app/timeline/timeline.component.css. Budget 6 kB was not met by 1.15
  kB with a total of 7.15 kB.
  </code></pre>
  
  <ol start="3">
  <li>Finally, <code>ngh</code> returns:</li>
  </ol>
  
  <pre><code>index.html could not be copied to 404.html. This does not look like an angular-cli project?!
  (Hint: are you sure that you have setup the directory correctly?)
  Diagnostic info: ENOENT: no such file or directory, stat 'W:\HardDiskDrive\Documentos\GitHub\Web-Development\my-website\dist\index.html'
  ‍ Uploading via git, please wait...
   Successfully published via angular-cli-ghpages! Have a nice day!
  </code></pre>
  
  <p>Yet when I try to access "<a href="http://jagustinbarrachina.github.io/" rel="nofollow noreferrer">http://jagustinbarrachina.github.io/</a>" I see nothing. Not only that but my repository on github is still empty.</p>
  
  <p>I don't know what to do! I am troubled by the index.html and 404.html error but if I see nothing in my github repository I believe the error should be before that. When I add the path.</p>
  
  <hr>
  
  <p><strong>Note:</strong> I should say my code is actually in another git repository I used to do a version control before. I did nothing about that but I am afraid they might interfere with each other.</p>
  
  <hr>
  
  <p>I solved the message of index.html by doing <code>ngh --dir dist/my-website</code> as I found <a href="https://github.com/angular-schule/angular-cli-ghpages/issues/37" rel="nofollow noreferrer">here</a>.
  Still not working.</p>
  
  <hr>
  
  <p>I am now using the base repository (<a href="https://github.com/NEGU93/agustinbarrachina.github.io" rel="nofollow noreferrer">https://github.com/NEGU93/agustinbarrachina.github.io</a>) I used before. I just renamed it (I heard I should use <code>.github.io</code> so I renamed it for it. I repeated all the steps but still nothing. I have no errors but still nothing.</p>
  
  <hr>
  
  <p>I connect to my website as: <a href="https://github.com/NEGU93/agustinbarrachina.github.io" rel="nofollow noreferrer">https://github.com/NEGU93/agustinbarrachina.github.io</a>.
  When I click f12 to see the console log I get:</p>
  
  <pre><code>GET https://agustinbarrachina.github.io/my-website/styles.083be7aca1b1a022cb0d.css net::ERR_ABORTED 404
  negu93.github.io/:1 Access to script at 'https://agustinbarrachina.github.io/my-website/runtime-es2015.1eba213af0b233498d9d.js' from origin 'https://negu93.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  negu93.github.io/:20 GET https://agustinbarrachina.github.io/my-website/runtime-es2015.1eba213af0b233498d9d.js net::ERR_FAILED
  Access to script at 'https://agustinbarrachina.github.io/my-website/polyfills-es2015.690002c25ea8557bb4b0.js' from origin 'https://negu93.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  negu93.github.io/:20 GET https://agustinbarrachina.github.io/my-website/polyfills-es2015.690002c25ea8557bb4b0.js net::ERR_FAILED
  negu93.github.io/:1 Access to script at 'https://agustinbarrachina.github.io/my-website/main-es2015.8001cdba897b3e8b2c89.js' from origin 'https://negu93.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  negu93.github.io/:20 GET https://agustinbarrachina.github.io/my-website/main-es2015.8001cdba897b3e8b2c89.js net::ERR_FAILED
  </code></pre>