Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heroku Buid Fails (same error log for local deploy via docker-compose) #137

Open
juniorumda opened this issue Aug 16, 2023 · 0 comments
Open

Comments

@juniorumda
Copy link

juniorumda commented Aug 16, 2023

Building via Heroku fails (please see the log)

-----> Installing dependencies
       Installing node modules
       npm notice 
       npm notice New minor version of npm available! 9.6.7 -> 9.8.1
       npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.8.1>
       npm notice Run `npm install -g [email protected]` to update!
       npm notice 
       npm ERR! code EUSAGE
       npm ERR! 
       npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
       npm ERR! 
       npm ERR! Invalid: lock file's [email protected] does not satisfy [email protected]
       npm ERR! Invalid: lock file's [email protected] does not satisfy [email protected]
       npm ERR! Invalid: lock file's [email protected] does not satisfy [email protected]
       npm ERR! Missing: [email protected] from lock file
       npm ERR! Invalid: lock file's [email protected] does not satisfy [email protected]
       npm ERR! Invalid: lock file's [email protected] does not satisfy [email protected]
       npm ERR! Invalid: lock file's [email protected] does not satisfy [email protected]
       npm ERR! Invalid: lock file's [email protected] does not satisfy [email protected]
       npm ERR! Invalid: lock file's [email protected] does not satisfy [email protected]
       npm ERR! Missing: [email protected] from lock file
       npm ERR! Missing: [email protected] from lock file
       npm ERR! Missing: [email protected] from lock file
       npm ERR! Missing: [email protected] from lock file
       npm ERR! Missing: [email protected] from lock file
       npm ERR! Invalid: lock file's [email protected] does not satisfy [email protected]
       npm ERR! Missing: [email protected] from lock file
       npm ERR! Invalid: lock file's @types/[email protected] does not satisfy @types/[email protected]
       npm ERR! Invalid: lock file's [email protected] does not satisfy [email protected]
       npm ERR! Invalid: lock file's [email protected] does not satisfy [email protected]
       npm ERR! Missing: [email protected] from lock file
       npm ERR! 
       npm ERR! Clean install a project
       npm ERR! 
       npm ERR! Usage:
       npm ERR! npm ci
       npm ERR! 
       npm ERR! Options:
       npm ERR! [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
       npm ERR! [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
       npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
       npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
       npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
       npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
       npm ERR! 
       npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
       npm ERR! 
       npm ERR! Run "npm help ci" for more info
       
       npm ERR! A complete log of this run can be found in: /tmp/npmcache.lhpRe/_logs/2023-08-16T15_50_23_953Z-debug-0.log
-----> Build failed
       
       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys
       
       Some possible problems:
       
       - Node version not specified in package.json
         https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
       
       Love,
       Heroku
       
 !     Push rejected, failed to compile Node.js app.
 !     Push failed

How to Reproduce
Steps to reproduce the behavior:

  1. Just click on "Deploy to Heroku" at https://github.com/twilio/twilio-voice-notification-app
  2. Add app name, select region, provide ACCOUNT_SID, AUTH_TOKEN and PASSCODE
  3. Hit Deploy
  4. Observe the above log

Expected behavior
Deployment fails.

Screenshots
image

Desktop:

  • OS: Windows 11
  • Browser: Microsoft Edge (Official build) (64-bit)
  • Version 115.0.1901.203

Additional context
Tried local deployment via docker on wsl Ubuntu 23.04 (all dependencies up to date) - same output during docker build.

Please Help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant