sindresorhus / grunt-shell

Run shell commands
MIT License
949 stars 126 forks source link

SyntaxError: Use of const in strict mode; shell.js:2 #114

Closed rcampbel closed 7 years ago

rcampbel commented 7 years ago

Node Version : 6.9.1 grunt-shell version : "2.1.0" error :

SyntaxError: xxxx/node_modules/grunt-shell/tasks/shell.js:2
>> const exec = require('child_process').exec;
>> ^^^^^
>> Use of const in strict mode.
sindresorhus commented 7 years ago

Upgrade Node.js

rcampbel commented 7 years ago

Issue still happens with Node 6.9.2 which is the latest long term support as of 3 days ago!