heroku-buildpack-meteor icon indicating copy to clipboard operation
heroku-buildpack-meteor copied to clipboard

Meteor 1.2 needs node 10.40 or greater

Open kingOtto opened this issue 9 years ago • 13 comments

A lot of Meteor people use this build pack; the recent Meteor update prompts an error on Heroku that 10.40 or greater is needed. This specifies 10.36.

kingOtto avatar Sep 22 '15 18:09 kingOtto

Use the engines section of your package.json to specify the version of Node.js to use on Heroku:

{
  "name": "myapp",
  "description": "a really cool app",
  "version": "0.0.1",
  "engines": {
    "node": "0.10.40"
  }
}

hazio avatar Sep 22 '15 20:09 hazio

@hazio where I set this package.json? The #34 is the fix!

nerijunior avatar Sep 23 '15 00:09 nerijunior

@nerijunior at root directory of your meteor app.

hazio avatar Sep 23 '15 00:09 hazio

@hazio I've tried but no effect. :(

nerijunior avatar Sep 23 '15 00:09 nerijunior

@nerijunior I'm unsure whether you still need it, but you can fork the repository, then navigate to bin/compile_node and just change the specified node_engine in line 37 to "0.10.40"

leonardykris avatar Sep 23 '15 18:09 leonardykris

@leonardykris Tks! I made this.

nerijunior avatar Sep 23 '15 19:09 nerijunior

For the time being you can use my fork. heroku create --buildpack https://github.com/tfarla/heroku-buildpack-meteor.git I have created a PR #37 but it has not been merged yet.

tomodutch avatar Oct 01 '15 18:10 tomodutch

@TFarla Tks but I made my own fork too! :)

nerijunior avatar Oct 01 '15 19:10 nerijunior

I'm still getting this Node 10.40 error... has this been fixed yet?

nanimokamo avatar Oct 11 '15 21:10 nanimokamo

Same problem, apparently have to make a fork. PR #37 need to be merged.

yborunov avatar Oct 12 '15 20:10 yborunov

Has anyone had luck with engines, or are the PRs like #37 the best options?

chrisbolin avatar Oct 16 '15 20:10 chrisbolin

If you are going with https://github.com/maxko87/heroku-buildpack-meteor.git buildpack, make sure to use this command to set it:

heroku buildpacks:set https://github.com/maxko87/heroku-buildpack-meteor.git --app yourapp

and then push to your Heroku app.

you can't just set the buildpack on the Heroku dashboard -- it won't work.

maxko87 avatar Oct 23 '15 05:10 maxko87

@maxko87 Thank you for this! I can't believe it's taking so long to fix the issue.

polkhovsky avatar Nov 06 '15 20:11 polkhovsky