Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.2
-
MOODLE_32_STABLE
-
MOODLE_32_STABLE
-
MDL-55856-master -
Description
Right now if you use a too old node version you get something like this:
$ grunt less
|
|
/Users/danp/moodles/im/moodle/node_modules/grunt-eslint/tasks/eslint.js:2
|
const chalk = require('chalk');
|
^^^^^
|
Loading "eslint.js" tasks...ERROR
|
>> SyntaxError: Use of const in strict mode.
|
|
Running "less:bootstrapbase" (less) task
|
>> 2 stylesheets created.
|
|
Done.
|
Unfortunately the package.json enginge requirement doesn't work so awesomely. Potentially we can use https://www.npmjs.com/package/grunt-node-version or something simpler to at least give a decent error.
Attachments
Issue Links
- has been marked as being related by
-
MDL-55048 Upgrade grunt and npm dependencies (and add travis checks on node version variants)
-
- Closed
-