title: How do I make Heroku use node 14.x instead of 12.x?
body: <p>I need Heroku to use NodeJS 14 instead of 12, how do I do that? On my computer I'm using Node 14, and I'm defining it in engines on <code>package.json</code> (at the root of my repo):</p>
  <pre><code>{
    &quot;engines&quot;: {
      &quot;node&quot;: &quot;14.x&quot;
    }
    ...
  }
  </code></pre>
  <p>I have both the <code>heorku/nodejs</code> as well as the <code>heroku/rails</code> buildpack installed because this is a Ruby on Rails apps with webpack:</p>
  <p><a href="https://i.stack.imgur.com/AAjt1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AAjt1.png" alt="enter image description here" /></a></p>
  <p>But when running my tests is Heroku, I get this error:</p>
  <pre><code>Error: Missing binding /app/node_modules/node-sass/vendor/linux-x64-72/binding.node
  Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 12.x
  Found bindings for the following environments:
    - Linux 64-bit with Unsupported runtime (88)
  </code></pre>
  <p>If I workaround the problem in the CI, I still run into trouble when deploying:</p>
  <pre><code>-----&gt; Installing node-v12.16.2-linux-x64
  -----&gt; Installing yarn-v1.22.4
  -----&gt; Detecting rake tasks
  -----&gt; Preparing app for Rails asset pipeline
         Running: rake assets:precompile
         yarn install v1.22.4
         [1/5] Validating package.json...
         error imok@0.1.0: The engine &quot;node&quot; is incompatible with this module. Expected version &quot;14.x&quot;. Got &quot;12.16.2&quot;
         error Found incompatible module.
         info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
  </code></pre>