title: Cannot run gatsby develop - There was a problem loading the local develop command
body: <p>I am trying to run gatsby develop in order to start the development server but I am getting the following error:</p>
  <pre><code>There was a problem loading the local develop command. Gatsby may not be installed in your site's &quot;node_modules&quot; directory. Perhaps you need to run &quot;npm install&quot;? You might need to delete your &quot;package-lock.json&quot; as well.
  </code></pre>
  <p>This is the project that I am working on: <a href="https://github.com/andreiprv/andyprv-blog" rel="nofollow noreferrer">https://github.com/andreiprv/andyprv-blog</a></p>
  <p>Cloned from this repo: <a href="https://github.com/alxshelepenok/gatsby-starter-lumen" rel="nofollow noreferrer">https://github.com/alxshelepenok/gatsby-starter-lumen</a></p>
  <p>It is probably a dependency issue, but I don't have the know-how to figure out how to solve it. After I started the project with gatsby new etc, I've got the following errors:</p>
  <pre><code>    npm ERR! code ERESOLVE
      npm ERR! ERESOLVE unable to resolve dependency tree
      npm ERR!
      npm ERR! While resolving: gatsby-starter-lumen@3.0.7
      npm ERR! Found: react@17.0.1
      npm ERR! node_modules/react
      npm ERR!   react@&quot;^17.0.1&quot; from the root project
      npm ERR!
      npm ERR! Could not resolve dependency:
      npm ERR! peer react@&quot;^16.4.2&quot; from gatsby@2.28.0
      npm ERR! node_modules/gatsby
      npm ERR!   gatsby@&quot;^2.27.4&quot; from the root project
      npm ERR!   peer gatsby@&quot;*&quot; from @sentry/gatsby@5.28.0
      npm ERR!   node_modules/@sentry/gatsby
      npm ERR!     @sentry/gatsby@&quot;^5.27.6&quot; from the root project
      npm ERR!
      npm ERR! Fix the upstream dependency conflict, or retry
      npm ERR! this command with --force, or --legacy-peer-deps
      npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
      npm ERR!
      npm ERR! See /Users/andreismbp/.npm/eresolve-report.txt for a full report.
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /Users/andreismbp/.npm/_logs/2020-12-04T17_22_00_512Z-debug.log
      error Command failed with exit code 1: npm install
      
      
        Error: Command failed with exit code 1: npm install
      
        - error.js:56 makeError
          [lib]/[gatsby-cli]/[execa]/lib/error.js:56:11
      
        - index.js:114 handlePromise
          [lib]/[gatsby-cli]/[execa]/index.js:114:26
      
        - task_queues:93 processTicksAndRejections
          node:internal/process/task_queues:93:5
      
        - init-starter.js:135 install
          [lib]/[gatsby-cli]/lib/init-starter.js:135:7
      
        - init-starter.js:202 clone
          [lib]/[gatsby-cli]/lib/init-starter.js:202:3
      
        - init-starter.js:343 initStarter
          [lib]/[gatsby-cli]/lib/init-starter.js:343:5
      
        - create-cli.js:449
          [lib]/[gatsby-cli]/lib/create-cli.js:449:9
  </code></pre>
  <p>I tried to uninstall and install gatsby again using <code>npm uninstall --save gatsby &amp;&amp; npm install --save gatsby</code></p>
  <p>but it failed with the following errors</p>
  <pre><code>npm ERR! code ERESOLVE
  npm ERR! ERESOLVE unable to resolve dependency tree
  npm ERR! 
  npm ERR! While resolving: gatsby-starter-lumen@3.0.7
  npm ERR! Found: react@17.0.1
  npm ERR! node_modules/react
  npm ERR!   react@&quot;^17.0.1&quot; from the root project
  npm ERR! 
  npm ERR! Could not resolve dependency:
  npm ERR! peer react@&quot;^16.4.2&quot; from gatsby@2.28.0
  npm ERR! node_modules/gatsby
  npm ERR!   peer gatsby@&quot;*&quot; from @sentry/gatsby@5.28.0
  npm ERR!   node_modules/@sentry/gatsby
  npm ERR!     @sentry/gatsby@&quot;^5.27.6&quot; from the root project
  npm ERR! 
  npm ERR! Fix the upstream dependency conflict, or retry
  npm ERR! this command with --force, or --legacy-peer-deps
  npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
  npm ERR! 
  npm ERR! See /Users/andreismbp/.npm/eresolve-report.txt for a full report.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /Users/andreismbp/.npm/_logs/2020-12-04T17_51_08_843Z-debug.log
  </code></pre>
  <p>Thank you in advance!</p>