node-nightly icon indicating copy to clipboard operation
node-nightly copied to clipboard

use of const in strict mode

Open samifreesoul opened this issue 9 years ago • 3 comments

aseds@asedsami ~/c/l/qa> sudo node-nightly
[sudo] password for aseds: 

/usr/lib/node_modules/node-nightly/cli.js:3
const spawn = require('cross-spawn').spawn;
^^^^^
SyntaxError: Use of const in strict mode.
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:929:3

samifreesoul avatar Sep 25 '16 05:09 samifreesoul

Please make sure you are on node version >=4

hemanth avatar Sep 25 '16 06:09 hemanth

node -v

returns

v6.6.0

samifreesoul avatar Sep 25 '16 07:09 samifreesoul

It works fine for me.

hemanth avatar Sep 25 '16 10:09 hemanth