P
P
programmer4545452019-04-20 11:42:40
Angular
programmer454545, 2019-04-20 11:42:40

Error when deploying heroku?

I did everything step by step
heroku login
git init
git add .
git commit -am "initial"
git push heroku master
------------------------------
but at the end such mistakes

Build
remote:        Running heroku-postbuild
remote:
remote:        > [email protected] heroku-postbuild /tmp/build_0fd189751ef284e1ba6838a19eac2531
remote:        > NPM_CONFIG_PRODUCTION=false npm run client-install && npm run build --prefix client
remote:
remote:
remote:        > [email protected] client-install /tmp/build_0fd189751ef284e1ba6838a19eac2531
remote:        > npm install --prefix client
remote:
remote:        up to date in 0.479s
remote:        found 0 vulnerabilities
remote:
remote: npm ERR! path /tmp/build_0fd189751ef284e1ba6838a19eac2531/client/package.json
remote: npm ERR! code ENOENT
remote: npm ERR! errno -2
remote: npm ERR! syscall open
remote: npm ERR! enoent ENOENT: no such file or directory, open '/tmp/build_0fd189751ef284e1ba6838a19eac2531/client/package.json'
remote: npm ERR! enoent This is related to npm not being able to find a file.
remote: npm ERR! enoent
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR!     /tmp/npmcache.IXqKT/_logs/2019-04-20T08_27_52_264Z-debug.log
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno 254
remote: npm ERR! [email protected] heroku-postbuild: `NPM_CONFIG_PRODUCTION=false npm run client-install && npm run build --prefix client`
remote: npm ERR! Exit status 254
remote: npm ERR!
remote: npm ERR! Failed at the [email protected] heroku-postbuild script.
remote: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR!     /tmp/npmcache.IXqKT/_logs/2019-04-20T08_27_52_281Z-debug.log
remote:
remote: -----> Build failed
remote:
remote:        We're sorry this build is failing! You can troubleshoot common issues here:
remote:        https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote:        Some possible problems:
remote:
remote:        - node_modules checked into source control
remote:          https://blog.heroku.com/node-habits-2016#9-only-git-the-important-bits
remote:
remote:        Love,
remote:        Heroku
remote:
remote:  !     Push rejected, failed to compile Node.js app.
remote:
remote:  !     Push failed
remote: Verifying deploy...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2019-04-22
@2ord

There in the logs are written potential causes and what to do. Must be read and understood.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question