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

Cannot deploy to Heroku: Bcrypt 3.X.X #28

Open
rwieruch opened this issue Oct 25, 2018 · 1 comment
Open

Cannot deploy to Heroku: Bcrypt 3.X.X #28

rwieruch opened this issue Oct 25, 2018 · 1 comment

Comments

@rwieruch
Copy link
Member

If anyone runs into this problem as I did today with Bcrypt while deploying to Heroku, this may help you.

Locally I am using Node version 10.11.0, but because I haven't specified anything else in the package.json file, Heroku took a default Node version 8.XX.XX for its own build. When using Bcrypt 3.0.2 and Node 8.XX.XX it didn't work. Then I set it explicitly the Node version for Heroku in the package.json file. It worked:

{
  "name": "my-app",
  "version": "1.0.0",
  "description": "",
  "engines": {
    "node": "10.11.0"
  },
  ...
}
@rwieruch
Copy link
Member Author

If anyone is running into this issue, just leave a quick comment here so that I know that this is still relevant.

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