title: Next.js gives missing script on all npm run commands
body: <p>I am creating a Next.js project as I follow along in a Udemy class. I have the following package.json</p>
  
  <pre><code>{
    "name": "nextjsdemo",
    "version": "1.0.0",
    "description": "",
    "main": "index.js",
    "scripts": {
      "dev": "next",
      "build": "next build",
      "start": "next start"
    },
    "author": "",
    "license": "ISC",
    "dependencies": {
      "next": "^9.0.2",
      "react": "^16.8.6",
      "react-dom": "^16.8.6"
    }
  }
  </code></pre>
  
  <p>My directory structure is as follows below.</p>
  
  <p><a href="https://i.stack.imgur.com/FANsC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FANsC.png" alt="enter image description here"></a></p>
  
  <pre><code>npm install --save next react react-dom
  </code></pre>
  
  <p>When I run the command </p>
  
  <pre><code>npm run dev
  </code></pre>
  
  <p>I receive the error:</p>
  
  <pre><code>npm ERR! missing script: dev
  </code></pre>
  
  <p>I receive a similar error on npm run build as well.</p>
  
  <p>What am I doing incorrectly?</p>
  
  <p>Thanks,</p>
  
  <p><strong>Edit 1</strong>
  The only way I could get this to work was to downgrade next to V4.2.3. This seems strange that the latest version does not work.</p>