IIC2143 / Syllabus-2022-1

IIC2143 Ingeniería de Software 2022-1 🚀✨
71 stars 14 forks source link

[error] Error push heroku - problema node-gyp #65

Closed diegocostares closed 2 years ago

diegocostares commented 2 years ago

Hola, intentando subir nuestro repositorio a heroku con git push heroku main me aparece el siguiente error (era mucho más largo el log):

/app/.node-gyp/16.13.1/include/node/node.h:855:3: note: in expansion of macro ‘NODE_MODULE_X’
         855 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
             |   ^~~~~~~~~~~~~
       ../src/binding.cpp:358:1: note: in expansion of macro ‘NODE_MODULE’
         358 | NODE_MODULE(binding, RegisterModule);
             | ^~~~~~~~~~~
       make: *** [binding.target.mk:133: Release/obj.target/binding/src/binding.o] Error 1
       make: Leaving directory '/tmp/build_c8bd8006/node_modules/node-sass/build'
       gyp ERR! build error 
       gyp ERR! stack Error: `make` failed with exit code: 2
       gyp ERR! stack     at ChildProcess.onExit (/tmp/build_c8bd8006/node_modules/node-gyp/lib/build.js:262:23)
       gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
       gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
       gyp ERR! System Linux 4.4.0-1101-aws
       gyp ERR! command "/tmp/build_c8bd8006/bin/node" "/tmp/build_c8bd8006/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
       gyp ERR! cwd /tmp/build_c8bd8006/node_modules/node-sass
       gyp ERR! node -v v16.13.1
       gyp ERR! node-gyp -v v3.8.0
       gyp ERR! not ok 
       Build failed with error code: 1
 !
 !     Precompiling assets failed.
 !
 !     Push rejected, failed to compile Ruby app.
 !     Push failed
diegocostares commented 2 years ago

Intente con lo que dijeron en https://stackoverflow.com/questions/19650621/heroku-upload-precompiling-assets-failed y ejecutando yarn upgrade @rails/webpacker --latest y asi se solucionó