title: React on Github Pages: gh-pages package not working
body: <h1>Problem</h1>
  
  <p>I am trying to put my React app on github pages. However, I can't even deploy the app to GitHub pages.</p>
  
  <h1>My Setup</h1>
  
  <p>I am using Visual Studio Code on my Windows 10 machine. I created my React app with <em>create-react-app</em>. I followed <a href="https://github.com/gitname/react-gh-pages" rel="noreferrer">this tutorial to set up my app for Github Pages</a>. This is my <em>package.json</em>:</p>
  
  <pre><code>{
    "homepage": "https://MisturDust319.github.io/ign_code_foo",
    "name": "ign_code_foo",
    "version": "0.1.0",
    "private": true,
    "dependencies": {
      "axios": "^0.18.0",
      "bootstrap": "^4.1.0",
      "gh-pages": "^1.1.0",
      "react": "^16.3.1",
      "react-dom": "^16.3.1",
      "react-scripts": "1.1.4",
      "reactstrap": "^5.0.0-beta.3"
    },
    "scripts": {
      "start": "react-scripts start",
      "build": "react-scripts build",
      "test": "react-scripts test --env=jsdom",
      "eject": "react-scripts eject",
      "predeploy": "npm run build",
      "deploy:": "gh-pages -d build"
    },
    "devDependencies": {}
  }
  </code></pre>
  
  <p>The full source is available <a href="https://github.com/MisturDust319/ign_code_foo" rel="noreferrer">here</a></p>
  
  <h1>What I've Done</h1>
  
  <p>To deploy, you are supposed to just run</p>
  
  <pre><code>npm run deploy
  </code></pre>
  
  <p>However, when I enter that command, from Windows PowerShell, Git Bash, and the Command Prompt, I just get several variations of "command not found".</p>
  
  <p>In response, I uninstalled <em>gh-pages</em> from dev-dependencies and reinstalled it as a normal dependency. No change. At this point, I've exhausted all solutions I can think of, and Google has only pulled up people who didn't include the <em>deploy</em> command in package.json.</p>