npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

error to use wscat in centos 7

Hi everyone! i need to help about this error that appear to execute command wscat .

/usr/lib/node_modules/wscat/node_modules/ws/lib/websocket.js:347
…options
^^^

SyntaxError: Unexpected token …
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:549:28)
at Object.Module._extensions…js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object. (/usr/lib/node_modules/wscat/node_modules/ws/index.js:3:19)


Are you running an npm command?
Are you running a version of node new enough that it supports the ... spread operator?
(This forum is focused on npm.)