You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Bug
What is the current behavior? bin/yarn.js is supposed to throw an error like "Node version x.xx is not supported, please use Node.js 4.0 or higher" when using an old Node.js version. However, when Node.js 0.10 it doesn't even reach that point, since it hits a syntax error beforehand:
yarn/lib-legacy/constants.js:7
const path = require('path');
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
What is the expected behavior?
I think we need to move the version check to the very top of yarn.js before any of our require statements are executed, so that it can exit as soon as possible when an outdated/legacy Node.js version is used.
The text was updated successfully, but these errors were encountered:
Daniel15
changed the title
Node.js version check should be done earlier
Node.js version check in yarn.js should be done earlier
Nov 16, 2016
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
bin/yarn.js
is supposed to throw an error like "Node version x.xx is not supported, please use Node.js 4.0 or higher" when using an old Node.js version. However, when Node.js 0.10 it doesn't even reach that point, since it hits a syntax error beforehand:What is the expected behavior?
I think we need to move the version check to the very top of
yarn.js
before any of ourrequire
statements are executed, so that it can exit as soon as possible when an outdated/legacy Node.js version is used.The text was updated successfully, but these errors were encountered: