While building application with Teamcity 9.1.7 we are getting below error -
const os = require('os'); ^^^^^
Loading "Gruntfile.js" tasks...ERROR
SyntaxError: Use of const in strict mode.
Any help is greatly appriciated
While building application with Teamcity 9.1.7 we are getting below error -
const os = require('os'); ^^^^^
Loading "Gruntfile.js" tasks...ERROR
SyntaxError: Use of const in strict mode.
Any help is greatly appriciated
add 'use strict';
to the top of the file. Or better update your node.js
'use strict';
const os = require('os');
// rest of the file
For your version of node (6.11.3 as you've mentioned in comment) everything should works fine. I've just checked