I have this situation, I have a project mounted on Heroku and I update it via git, but for a while now it won't let git push heroku master
me do it, it throws me this error, I have tried to do several things, but the error persists, does anyone know what is due ?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.ZJa3F/_logs/2019-11-16T01_27_11_336Z-debug.log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
If you're stuck, please submit a ticket so we can help:
https://help.heroku.com/
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed
Port setting in the app:
app.set('port', process.env.PORT || 4000); //puerto y asì
app.listen(app.get('port'), () => {
console.log('App listening on port ${app.get('port')}');
//console.log(hostname)
});
I want to start by indicating that this answer does not try to answer the reason for the error, but rather points out why it is not recommended to use
SQLite
enHeroku
.Here is a translated snippet from the SQLite on Heroku article :
In other words, except for some very special use case, it's not a good idea to use
SQLite
enHeroku
.It's been a long time and I forgot to answer this question, but in short, the problem here is that I was trying to push the node_modules folder in my commit , so the answer was very simple.
And ready. All good with my deploy.