title: Netlify says, "error Gatsby requires Node.js 14.15.0 or higher (you have v12.18.0)"—yet I have the newest Node version?
body: <p>After migrating from Remark to MDX, my builds on Netlify are failing.</p>
  <p>I get this error when trying to build:</p>
  <pre><code>10:13:28 AM: $ npm run build
  10:13:29 AM: &gt; blog-gatsby@0.1.0 build /opt/build/repo
  10:13:29 AM: &gt; gatsby build
  10:13:30 AM: error Gatsby requires Node.js 14.15.0 or higher (you have v12.18.0).
  10:13:30 AM: Upgrade Node to the latest stable release: https://gatsby.dev/upgrading-node-js
  </code></pre>
  <p>Yet when I run <code>node -v</code> in my terminal, it says v17.2.0.</p>
  <p>I assume it's not a coincidence that this happened after migrating. Can the problem be because of my node-modules folder? Or is there something in my gatsby-config.js or package.json files I need to change?</p>
  <p>My package.json file:</p>
  <pre><code>{
    &quot;name&quot;: &quot;blog-gatsby&quot;,
    &quot;private&quot;: true,
    &quot;description&quot;: &quot;A starter for a blog powered by Gatsby and Markdown&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;author&quot;: &quot;Magnus Kolstad &lt;kolstadmagnus@gmail.com&gt;&quot;,
    &quot;bugs&quot;: {
      &quot;url&quot;: &quot;https://kolstadmagnus.no&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@mdx-js/mdx&quot;: &quot;^1.6.22&quot;,
      &quot;@mdx-js/react&quot;: &quot;^1.6.22&quot;,
      &quot;gatsby&quot;: &quot;^4.3.0&quot;,
      &quot;gatsby-plugin-feed&quot;: &quot;^4.3.0&quot;,
      &quot;gatsby-plugin-gatsby-cloud&quot;: &quot;^4.3.0&quot;,
      &quot;gatsby-plugin-google-analytics&quot;: &quot;^4.3.0&quot;,
      &quot;gatsby-plugin-image&quot;: &quot;^2.3.0&quot;,
      &quot;gatsby-plugin-manifest&quot;: &quot;^4.3.0&quot;,
      &quot;gatsby-plugin-mdx&quot;: &quot;^3.4.0&quot;,
      &quot;gatsby-plugin-offline&quot;: &quot;^5.3.0&quot;,
      &quot;gatsby-plugin-react-helmet&quot;: &quot;^5.3.0&quot;,
      &quot;gatsby-plugin-sharp&quot;: &quot;^4.3.0&quot;,
      &quot;gatsby-remark-copy-linked-files&quot;: &quot;^5.3.0&quot;,
      &quot;gatsby-remark-images&quot;: &quot;^6.3.0&quot;,
      &quot;gatsby-remark-prismjs&quot;: &quot;^6.3.0&quot;,
      &quot;gatsby-remark-responsive-iframe&quot;: &quot;^5.3.0&quot;,
      &quot;gatsby-remark-smartypants&quot;: &quot;^5.3.0&quot;,
      &quot;gatsby-source-filesystem&quot;: &quot;^4.3.0&quot;,
      &quot;gatsby-transformer-sharp&quot;: &quot;^4.3.0&quot;,
      &quot;prismjs&quot;: &quot;^1.25.0&quot;,
      &quot;react&quot;: &quot;^17.0.1&quot;,
      &quot;react-dom&quot;: &quot;^17.0.1&quot;,
      &quot;react-helmet&quot;: &quot;^6.1.0&quot;,
      &quot;typeface-merriweather&quot;: &quot;0.0.72&quot;,
      &quot;typeface-montserrat&quot;: &quot;0.0.75&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;prettier&quot;: &quot;^2.4.1&quot;
    },
    &quot;homepage&quot;: &quot;https://kolstadmagnus.no&quot;,
    &quot;keywords&quot;: [
      &quot;blog&quot;
    ],
    &quot;license&quot;: &quot;0BSD&quot;,
    &quot;main&quot;: &quot;n/a&quot;,
    &quot;repository&quot;: {
      &quot;type&quot;: &quot;git&quot;,
      &quot;url&quot;: &quot;git+https://github.com/gatsbyjs/gatsby-starter-blog.git&quot;
    },
    &quot;scripts&quot;: {
      &quot;build&quot;: &quot;gatsby build&quot;,
      &quot;develop&quot;: &quot;gatsby develop&quot;,
      &quot;format&quot;: &quot;prettier --write \&quot;**/*.{js,jsx,ts,tsx,json,md}\&quot;&quot;,
      &quot;start&quot;: &quot;gatsby develop&quot;,
      &quot;serve&quot;: &quot;gatsby serve&quot;,
      &quot;clean&quot;: &quot;gatsby clean&quot;,
      &quot;test&quot;: &quot;echo \&quot;Write tests! -&gt; https://gatsby.dev/unit-testing\&quot; &amp;&amp; exit 1&quot;
    }
  }
  </code></pre>
  <p>What am I doing wrong here?</p>
  <hr />
  <h2>Update #1</h2>
  <pre><code>7:11:59 PM: failed Building production JavaScript and CSS bundles - 20.650s
  7:11:59 PM: error Generating JavaScript bundles failed
  7:11:59 PM: Module build failed (from ./node_modules/url-loader/dist/cjs.js):
  7:11:59 PM: Error: error:0308010C:digital envelope routines::unsupported
  7:11:59 PM:     at new Hash (node:internal/crypto/hash:67:19)
  7:11:59 PM:     at Object.createHash (node:crypto:130:10)
  7:11:59 PM:     at getHashDigest (/opt/build/repo/node_modules/file-loader/node_modules/loader-utils/lib/getHashDigest.js:46:34)
  7:11:59 PM:     at /opt/build/repo/node_modules/file-loader/node_modules/loader-utils/lib/interpolateName.js:113:11
  7:11:59 PM:     at String.replace (&lt;anonymous&gt;)
  7:11:59 PM:     at interpolateName (/opt/build/repo/node_modules/file-loader/node_modules/loader-utils/lib/interpolateName.js:110:8)
  7:11:59 PM:     at Object.loader (/opt/build/repo/node_modules/file-loader/dist/index.js:29:48)
  7:11:59 PM:     at Object.loader (/opt/build/repo/node_modules/url-loader/dist/index.js:127:19)
  7:11:59 PM: ​
  7:11:59 PM: ────────────────────────────────────────────────────────────────
  7:11:59 PM:   &quot;build.command&quot; failed                                        
  7:11:59 PM: ────────────────────────────────────────────────────────────────
  7:11:59 PM: ​
  7:11:59 PM:   Error message
  7:11:59 PM:   Command failed with exit code 1: npm run build
  7:11:59 PM: ​
  7:11:59 PM:   Error location
  7:11:59 PM:   In Build command from Netlify app:
  7:11:59 PM:   npm run build
  7:11:59 PM: ​
  7:11:59 PM:   Resolved config
  7:11:59 PM:   build:
  7:11:59 PM:     command: npm run build
  7:11:59 PM:     commandOrigin: ui
  7:11:59 PM:     publish: /opt/build/repo/public
  7:11:59 PM:     publishOrigin: ui
  7:11:59 PM:   plugins:
  7:11:59 PM:     - inputs: {}
  7:11:59 PM:       origin: ui
  7:11:59 PM:       package: '@netlify/plugin-gatsby'
  7:11:59 PM:   redirects:
  7:12:00 PM:     - from: /api/*
        status: 200
        to: /.netlify/functions/gatsby
      - force: true
        from: https://magnuskolstad.com
        status: 301
        to: https://kolstadmagnus.no
    redirectsOrigin: config
  Caching artifacts
  </code></pre>