title: What to put in package json to run create-react-app
body: <p>I'm trying to follow some introductory react courses and I can't run npm start to get create-react-app working. I'm on windows 10. The error I usually get is "npm ERR! missing script: start"</p>
  
  <p>I should mention I'm doing this from the command line, which is my Node.js command prompt</p>
  
  <p>Read through some documentation:
  <a href="https://docs.npmjs.com/creating-a-package-json-file" rel="nofollow noreferrer">https://docs.npmjs.com/creating-a-package-json-file</a>
  <a href="https://www.npmjs.com/package/npm-start-command" rel="nofollow noreferrer">https://www.npmjs.com/package/npm-start-command</a></p>
  
  <p>Searched stack overflow:
  <a href="https://stackoverflow.com/questions/49840457/missing-script-start">Missing Script Start</a>, etc.</p>
  
  <p>Ran npm install npm-start-command --save-dev</p>
  
  <p>Tried downgrading npm to 4.6.1, then upgraded back to the latest</p>
  
  <p>Created several versions of package.json with npm init</p>
  
  <p>I've included "start": and various ideas under the scripts portion of package.json including</p>
  
  <pre><code>"start": "node index.js"
  "start": "index.js"
  "start": "server.js"
  </code></pre>
  
  <pre><code>{
    "name": "react",
    "version": "1.0.0",
    "description": "react json ",
    "main": "index.js",
    "scripts": {
       "test": "echo \"Error: no test specified\" &amp;&amp; exit 1"
    },
    "author": "Julie",
    "license": "ISC"
  }
  </code></pre>
  
  <p>The problem is there is no index.js so far because none of the modules I'm creating to learn react have started any code yet. This is the number one step in the courses I'm trying to take on Pluralsight and eggheads.io. Then I should just be able to go to <a href="http://localhost:3000/" rel="nofollow noreferrer">http://localhost:3000/</a> and see the Start React image. </p>
  
  <p>react-fundamentals with author liam-mclennan on Pluralsight has only these directions to start:</p>
  
  <pre><code>1. npm install -g create-react-app
  2. create-react-app click-counter (this is the name of the app)
  3. cd click-counter
  4. npm start
  </code></pre>
  
  <p>I have tried putting the package.json both in the create-react-app dir and click-counter (the project folder below it)</p>
  
  <p>Eggheads.io "Start Learning React" has these directions:</p>
  
  <pre><code>1. npm -i create-react-app -g
  2. create-react-app react-app
  3. cd react-app
  4. react-app subl .
  5. npm start
  </code></pre>
  
  <p>I get a slightly different error here:</p>
  
  <pre><code>internal/modules/cjs/loader.js:583
      throw err;
      ^
  
  Error: Cannot find module 'C:\Users\julie\react-app\examples\app.js'
      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
      at Function.Module._load (internal/modules/cjs/loader.js:507:25)
      at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
      at startup (internal/bootstrap/node.js:279:19)
      at bootstrapNodeJSCore (internal/bootstrap/node.js:752:3)
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! react-app@1.0.0 start: node ./examples/app.js
  </code></pre>
  
  <p>And the package.json was created automatically:</p>
  
  <pre><code>{
    "name": "react-app",
    "version": "0.1.0",
    "private": true,
    "dependencies": {
      "react": "^16.9.0",
      "react-dom": "^16.9.0",
      "react-scripts": "3.1.1"
    },
    "scripts": {
      "start": "react-scripts start",
      "build": "react-scripts build",
      "test": "react-scripts test",
      "eject": "react-scripts eject"
    },
    "eslintConfig": {
      "extends": "react-app"
    },
    "browserslist": {
      "production": [
        "&gt;0.2%",
        "not dead",
        "not op_mini all"
      ],
      "development": [
        "last 1 chrome version",
        "last 1 firefox version",
        "last 1 safari version"
      ]
    }
  }
  
  </code></pre>