DEV Community

Cover image for after running: ENV=local npm run wdioTest
ismailalabou
ismailalabou

Posted on

after running: ENV=local npm run wdioTest

terminal error:

$ ENV=local npm run wdioTest

> react-webdriverio-gitlab-ci-cd@0.1.0 wdioTest C:\Users\ismailalabou\Documents\Gitlab\deploy-react-app-to-heroku-via-gitlab-ci-test-with-webdriverio
> node ./node_modules/.bin/wdio ./wdio.conf.js

C:\Users\ismailalabou\Documents\Gitlab\deploy-react-app-to-heroku-via-gitlab-ci-test-with-webdriverio\node_modules\.bin\wdio:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at wrapSafe (internal/modules/cjs/loader.js:979:16)
    at Module._compile (internal/modules/cjs/loader.js:1027:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-webdriverio-gitlab-ci-cd@0.1.0 wdioTest: `node ./node_modules/.bin/wdio ./wdio.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-webdriverio-gitlab-ci-cd@0.1.0 wdioTest script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ismailalabou\AppData\Roaming\npm-cache\_logs\2020-12-23T13_46_27_859Z-debug.log
Enter fullscreen mode Exit fullscreen mode

log file:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Users\ismailalabou\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'wdioTest'
1 verbose cli ]
2 info using npm@6.14.8
3 info using node@v14.15.0
4 verbose run-script [ 'prewdioTest', 'wdioTest', 'postwdioTest' ]
5 info lifecycle react-webdriverio-gitlab-ci-cd@0.1.0~prewdioTest: react-webdriverio-gitlab-ci-cd@0.1.0
6 info lifecycle react-webdriverio-gitlab-ci-cd@0.1.0~wdioTest: react-webdriverio-gitlab-ci-cd@0.1.0
7 verbose lifecycle react-webdriverio-gitlab-ci-cd@0.1.0~wdioTest: unsafe-perm in lifecycle true
8 verbose lifecycle react-webdriverio-gitlab-ci-cd@0.1.0~wdioTest: PATH: C:\Users\ismailalabou\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\ismailalabou\Documents\Gitlab\deploy-react-app-to-heroku-via-gitlab-ci-test-with-webdriverio\node_modules.bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\ismailalabou\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn;C:\Program Files\Microsoft SQL Server\140\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn;C:\Program Files\Microsoft SQL Server\140\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn;C:\Program Files\PuTTY;C:\Program Files\nodejs;C:\Program Files\Java\jdk-15.0.1\bin;C:\Program Files\Git\cmd;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;%MAVEN_HOME%\bin;C:\Users\ismailalabou\AppData\Local\Microsoft\WindowsApps;C:\Users\ismailalabou.dotnet\tools;C:\Users\ismailalabou\AppData\Local\GitHubDesktop\bin;C:\Users\ismailalabou\AppData\Roaming\npm;C:\Program Files (x86)\GitHub CLI;C:\Program Files\heroku\bin
9 verbose lifecycle react-webdriverio-gitlab-ci-cd@0.1.0~wdioTest: CWD: C:\Users\ismailalabou\Documents\Gitlab\deploy-react-app-to-heroku-via-gitlab-ci-test-with-webdriverio
10 silly lifecycle react-webdriverio-gitlab-ci-cd@0.1.0~wdioTest: Args: [ '/d /s /c', 'node ./node_modules/.bin/wdio ./wdio.conf.js' ]
11 silly lifecycle react-webdriverio-gitlab-ci-cd@0.1.0~wdioTest: Returned: code: 1 signal: null
12 info lifecycle react-webdriverio-gitlab-ci-cd@0.1.0~wdioTest: Failed to exec wdioTest script
13 verbose stack Error: react-webdriverio-gitlab-ci-cd@0.1.0 wdioTest: node ./node_modules/.bin/wdio ./wdio.conf.js
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\Users\ismailalabou\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess. (C:\Users\ismailalabou\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1048:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
14 verbose pkgid react-webdriverio-gitlab-ci-cd@0.1.0
15 verbose cwd C:\Users\ismailalabou\Documents\Gitlab\deploy-react-app-to-heroku-via-gitlab-ci-test-with-webdriverio
16 verbose Windows_NT 10.0.18363
17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\ismailalabou\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "wdioTest"
18 verbose node v14.15.0
19 verbose npm v6.14.8
20 error code ELIFECYCLE
21 error errno 1
22 error react-webdriverio-gitlab-ci-cd@0.1.0 wdioTest: node ./node_modules/.bin/wdio ./wdio.conf.js
22 error Exit status 1
23 error Failed at the react-webdriverio-gitlab-ci-cd@0.1.0 wdioTest script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Top comments (0)