npm Community Forum (Archive)

The npm community forum has been discontinued.

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

Getting an issue while running node_modules\.bin\wdio config in windows

I trying to setup webdriverIO framework to create some tests scripts

I am getting an issue while trying to create config file in wdio using the command
node_modules.bin\wdio config. Please help me how to fix this .

I am using node v6.14.4 &
npm version 3.10.10

C:\webdriverio-test>node_modules.bin\wdio config
async function runServiceHook(launcher, hookName, …args) {

SyntaxError: Unexpected token function
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. (C:\webdriverio-test\node_modules@wdio\cli\build\config.js:8:14)

WebDriver requires node 8.11.0 or above, so it won’t work on node 6.

Thank you very much It worked for me after node upgrade :slight_smile: