question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build fails on Heroku

See original GitHub issue
remote:        - node_modules
remote: cp: cannot open '/tmp/build_cad51107/node_modules/node-jq/bin/jq' for reading: Permission denied
remote: 
remote: -----> Build failed

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
fjcaetanocommented, Apr 16, 2021

Using the packaged jq doesn’t work because it’s only available at build time, not at runtime. I was able to solve this by using an additional buildpack that enables jq: https://github.com/chrismytton/heroku-buildpack-jq

Then you can set the environment var when running your app: JQ_PATH=\"$(which jq)\" node index.js

1reaction
davesnxcommented, Mar 23, 2021

If the problem persists, can you share a minimum repo where the deploy happens in heroku where I can take a look?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Node.js Deploys - Heroku Dev Center
Sometimes installing a dependency or running a build locally completes successfully, and when it gets to Heroku, the build will fail. If you...
Read more >
Why is my Heroku build failing? - Stack Overflow
I am trying to build an Angular 4 application on Heroku but it won't let me. I have a feeling it is missing...
Read more >
Build failed when deploy to Heroku · Issue #1005 - GitHub
Hello all, I got this error when I try to deploy app to Heroku: remote: -----> Node.js app detected remote: remote: -----> Creating...
Read more >
Heroku deploy failure - Top 3 error newbies always have
When you deploy failed a simple app to Heroku, you may encounter various types of error. This video is a guide to fix...
Read more >
Heroku Build failed : r/rails - Reddit
Hello folks, when I push my app to heroku I get this failure. We're sorry this build is failing! You can troubleshoot common...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found