Open ghost opened 5 years ago
Run yarn upgrade
, then yarn
should work again.
I have the same error while deploying to Heroku using the 1-click deploy link. Is there anything to do to fix this ? Thanks in advance !
Here is the log:
binding.target.mk:131: recipe for target 'Release/obj.target/binding/src/binding.o' failed
make: *** [Release/obj.target/binding/src/binding.o] Error 1
make: Leaving directory '/tmp/build_4fb7e25a_/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_4fb7e25a_/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.4.0-1077-aws
gyp ERR! command "/tmp/build_4fb7e25a_/.heroku/node/bin/node" "/tmp/build_4fb7e25a_/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /tmp/build_4fb7e25a_/node_modules/node-sass
gyp ERR! node -v v12.18.4
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
-----> Build failed
Ok, I fixed it by forking the project, running indeed yarn upgrade
and yarn install
in my forked repo, then committing the yarn.lock
to my fork, and finally creating a deploy on Heroku with the correct buildpacks. Then it worked perfectly.
Thanks !
As recommended, I did:
At first, yarn warns me of the following:
Then the install goes on, spend some time on sass, and concludes by hundreds of error lines ending by:
I am not familiar with yarn and sass, I'm not able to troubleshoot that.