Я сделал все шаг за шагом
heroku login
git init
git add .
git commit -am "initial"
git push heroku master
------------------------------------
но в конце такие ошибки
Build
remote: Running heroku-postbuild
remote:
remote: > server@1.0.0 heroku-postbuild /tmp/build_0fd189751ef284e1ba6838a19eac2531
remote: > NPM_CONFIG_PRODUCTION=false npm run client-install && npm run build --prefix client
remote:
remote:
remote: > server@1.0.0 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! server@1.0.0 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 server@1.0.0 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...