Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

222
Views
¿Cómo hago que Heroku use el nodo 14.x en lugar de 12.x?

Necesito que Heroku use NodeJS 14 en lugar de 12, ¿cómo hago eso? En mi computadora, estoy usando Node 14 y lo estoy definiendo en los motores en package.json (en la raíz de mi repositorio):

 { "engines": { "node": "14.x" } ... }

Tengo tanto heorku/nodejs como heroku/rails buildpack instalado porque esta es una aplicación de Ruby on Rails con webpack:

ingrese la descripción de la imagen aquí

Pero cuando ejecuto mis pruebas es Heroku, aparece este error:

 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)

Si soluciono el problema en el CI, sigo teniendo problemas al implementar:

 -----> Installing node-v12.16.2-linux-x64 -----> Installing yarn-v1.22.4 -----> Detecting rake tasks -----> 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 "node" is incompatible with this module. Expected version "14.x". Got "12.16.2" error Found incompatible module. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

En la documentación dice:

Si necesita una versión específica de nodo para su aplicación Ruby, debe usar varios paquetes de compilación para instalar primero el nodo y luego instalar Ruby.

lo que significa que si implementó una aplicación Rails, debe eliminar todos los paquetes de compilación y luego volver a agregarlos en el orden correcto, primero heroku/node y luego heroku/rails .

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!