Closed shyjuonetikk closed 4 years ago
Mega thank yo @Yongyiw. Kisses and caresses.
2021-08-07T08:42:42.733657+00:00 app[web.1]: npm ERR! Exit status 1
2021-08-07T08:42:42.734004+00:00 app[web.1]: npm ERR!
2021-08-07T08:42:42.734293+00:00 app[web.1]: npm ERR! Failed at the assign-mentor@1.0.0 start script.
2021-08-07T08:42:42.734534+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-08-07T08:42:42.742100+00:00 app[web.1]:
2021-08-07T08:42:42.742550+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-08-07T08:42:42.742864+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-08-07T08_42_42_735Z-debug.log
2021-08-07T08:42:42.833527+00:00 heroku[web.1]: Process exited with status 1
2021-08-07T08:42:42.945967+00:00 heroku[web.1]: State changed from starting to crashed
2021-08-07T08:44:15.000000+00:00 app[api]: Build started by user amrapalipalkar24@gmail.com
2021-08-07T08:44:34.171080+00:00 app[api]: Deploy 61825cda by user amrapalipalkar24@gmail.com
2021-08-07T08:44:34.171080+00:00 app[api]: Release v18 created by user amrapalipalkar24@gmail.com
2021-08-07T08:44:35.483060+00:00 heroku[web.1]: State changed from crashed to starting
2021-08-07T08:44:34.000000+00:00 app[api]: Build succeeded
2021-08-07T08:44:38.534189+00:00 heroku[web.1]: Starting process with command npm start
2021-08-07T08:44:40.949110+00:00 app[web.1]:
2021-08-07T08:44:40.949127+00:00 app[web.1]: > assign-mentor@1.0.0 start /app
2021-08-07T08:44:40.949127+00:00 app[web.1]: > node nodemon
2021-08-07T08:44:40.949128+00:00 app[web.1]:
2021-08-07T08:44:40.996124+00:00 app[web.1]: internal/modules/cjs/loader.js:892
2021-08-07T08:44:40.996125+00:00 app[web.1]: throw err;
2021-08-07T08:44:40.996126+00:00 app[web.1]: ^
2021-08-07T08:44:40.996126+00:00 app[web.1]:
2021-08-07T08:44:40.996126+00:00 app[web.1]: Error: Cannot find module '/app/nodemon'
2021-08-07T08:44:40.996127+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
2021-08-07T08:44:40.996127+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:745:27)
2021-08-07T08:44:40.996127+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
2021-08-07T08:44:40.996128+00:00 app[web.1]: at internal/main/run_main_module.js:17:47 {
2021-08-07T08:44:40.996128+00:00 app[web.1]: code: 'MODULE_NOT_FOUND',
2021-08-07T08:44:40.996128+00:00 app[web.1]: requireStack: []
2021-08-07T08:44:40.996129+00:00 app[web.1]: }
2021-08-07T08:44:41.005681+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2021-08-07T08:44:41.005954+00:00 app[web.1]: npm ERR! errno 1
2021-08-07T08:44:41.011680+00:00 app[web.1]: npm ERR! assign-mentor@1.0.0 start: node nodemon
2021-08-07T08:44:41.011766+00:00 app[web.1]: npm ERR! Exit status 1
2021-08-07T08:44:41.011863+00:00 app[web.1]: npm ERR!
2021-08-07T08:44:41.011943+00:00 app[web.1]: npm ERR! Failed at the assign-mentor@1.0.0 start script.
2021-08-07T08:44:41.012017+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-08-07T08:44:41.018907+00:00 app[web.1]:
2021-08-07T08:44:41.019029+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-08-07T08:44:41.019078+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-08-07T08_44_41_012Z-debug.log
2021-08-07T08:44:41.066051+00:00 heroku[web.1]: Process exited with status 1
2021-08-07T08:44:41.155439+00:00 heroku[web.1]: State changed from starting to crashed
i got this error
I got this error after try git push heroku master
The full error logs
remote: sh: 1: webpack: not found
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! syscall spawn
remote: npm ERR! file sh
remote: npm ERR! errno ENOENT
remote: npm ERR! api@1.0.0 build: `webpack`
remote: npm ERR! spawn ENOENT
remote: npm ERR!
remote: npm ERR! Failed at the api@1.0.0 build 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.GHuKY/_logs/2021-12-10T01_45_46_003Z-debug.log
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno 1
remote: npm ERR! api@1.0.0 heroku-postbuild: `NPM_CONFIG_PRODUCTION=false npm install && npm run build`
remote: npm ERR! Exit status 1
remote: npm ERR!
remote: npm ERR! Failed at the api@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.GHuKY/_logs/2021-12-10T01_45_46_019Z-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 version not specified in package.json
remote: https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
remote:
remote: Love,
remote: Heroku
remote:
remote: ! Push rejected, failed to compile Node.js app.
remote:
remote: ! Push failed
remote: !
remote: ! ## Warning - The same version of this code has already been built: cbd00e226cc4d45fa67b131f091ae80686962e88
remote: !
remote: ! We have detected that you have triggered a build from source code with version cbd00e226cc4d45fa67b131f091ae80686962e88
remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote: !
remote: ! If you are developing on a branch and deploying via git you must run:
remote: !
remote: ! git push heroku <branchname>:main
remote: !
remote: ! This article goes into details on the behavior:
remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to fun-qa-app.
remote:
To https://git.heroku.com/fun-qa-app.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/fun-qa-app.git'
I've tried all of the above solutions but am still stuck on this!
Created app using this, and worked fine in localhost. While try to deploy to heroku it shows error.
remote: npm ERR! path /tmp/build_6a121e9cb8074af263e289230b4020cf/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_6a121e9cb8074af263e289230b4020cf/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.ahlWT/_logs/2018-11-22T09_34_46_760Z-debug.log remote: npm ERR! code ELIFECYCLE remote: npm ERR! errno 254 remote: npm ERR! mern-shopping@1.0.0 heroku-postbuild:
NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
remote: npm ERR! Exit status 254 remote: npm ERR! remote: npm ERR! Failed at the mern-shopping@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.ahlWT/_logs/2018-11-22T09_34_46_776Z-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: - Node version not specified in package.json remote: https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version remote: remote: Love, remote: Heroku remote: remote: ! Push rejected, failed to compile Node.js app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to enigmatic-refuge-71917. remote: To https://git.heroku.com/enigmatic-refuge-71917.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/enigmatic-refuge-71917.git'Please let me know how to figure this out.