-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Required Node.js version? #25
Comments
Great point. I just replaced the arrow func with an anonymous function. Can you please try again and confirm you're good? I did not intend to use ES6 features in the build tools. I want to assure older versions of Node can run this. Thanks for reporting this! |
Tested today on ubuntu with nodejs 0.10, it just won't work.
|
Thanks guys - I'm still trying to determine the minimum Node version this currently supports as is. Do you have a suggestion for an easy way to figure that out? .10 is quite old as it was released nearly 3 years ago: 2013-03-11. I can add the promise polyfill, but I hate to add another dependency to fix an issue on a 3 year old release. Enlighten me - Is there a good reason to support versions this old? Since this is a framework for new development, wouldn't someone logically want to utilize a recent version of Node as well? Certainly open to a dialog on this. |
0.10 is in used in Ubuntu since the very beginning of the package. Next release (Xenial) is jumping to Node 4.2.4 (see http://packages.ubuntu.com/search?keywords=nodejs ) You're on the bleeding edge of software development, you don't have to support back compatibility. It's up to you to define the minimum requirements. I strongly suggest that you enhance the README with this minimal requirement and point a friendly mean of installing up-to-date NodeJs implementation. For instance https://github.com/nodesource/distributions Your starter kit is intended for developer audience. You can assume that we are capable of installing a fixed version of node to match the kit. |
Thanks for the advice. Makes sense. So you're saying if I set requirements at 4.2.4, those on Linux should still be able to use this? |
The official node site has good information on installing node v4 and v5 on various Linux distros: https://nodejs.org/en/download/package-manager/ Also, anyone doing regular node dev work would likely want a node version manager (like nvm). |
I've noted 4.0.0 as the minimum version in the Readme. Thanks for the input everyone! |
I tried to make a build on Node 0.12.2, but the build.js is using ES6 arrow functions. As far as I can see, arrow functions are supported since Node 4.0.0.
Should this dependency at least be noted in the readme? Some people come with Node 0.1x versions, for example because their standard package manager has 0.1x (e.g. Ubuntu).
A way to make it work on old Node versions would be
babel-node
frombabel-cli
, AFAIK.The text was updated successfully, but these errors were encountered: