Testing ionic - `e2e.watch` errored

I am making a PR for Ionic, and want to test it.
I am trying to run gulp e2e.watch --f=searchbar

And I get this in console:
Important to note I am using Git Bash on Windows

Full log:

[17:30:55] Using gulpfile D:\xampp\htdocs\Forks\ionic\gulpfile.js
[17:30:55] Starting ‘e2e.prepare’…
[17:30:55] Starting ‘e2e.clean’…
[17:30:55] Finished ‘e2e.clean’ after 41 ms
[17:30:55] Starting ‘e2e.polyfill’…
[17:31:00] Finished ‘e2e.polyfill’ after 5.54 s
[17:31:00] Starting ‘e2e.prepareSass’…
[17:31:00] Finished ‘e2e.prepareSass’ after 2.97 ms
[17:31:00] Finished ‘e2e.prepare’ after 5.59 s
[17:31:00] Starting ‘e2e.watch’…
Running ionic-app-scripts serve with searchbar/basic
node ./node_modules/.bin/ionic-app-scripts serve --appEntryPoint D:\xampp\htdocs\Forks\ionic\src\components\searchbar\test\basic\app\main.ts --appNgModulePath D:\xampp\htdocs\Forks\ionic\src\components\searchbar\test\basic\app\app.module.ts --deepLinksDir D:\xampp\htdocs\Forks\ionic\src\components\searchbar\test\basic --srcDir D:\xampp\htdocs\Forks\ionic\src --wwwDir D:\xampp\htdocs\Forks\ionic\dist\e2e\components\searchbar\test\basic\www --tsconfig D:\xampp\htdocs\Forks\ionic\dist\e2e\components\searchbar\test\basic\tsconfig.json --readConfigJson false --ionicAngularDir D:\xampp\htdocs\Forks\ionic\src --sass scripts\e2e\sass.config.js --copy scripts\e2e\copy.config.js --enableLint false
basedir=$(dirname “$(echo “$0” | sed -e ‘s,\,/,g’)”)
SyntaxError: missing ) after argument list
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
[17:31:00] ‘e2e.watch’ errored after 102 ms
[17:31:00] Error: App-scripts failed with non-zero status code
at ChildProcess. (D:\xampp\htdocs\Forks\ionic\scripts\gulp\util.ts:228:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

I was missing some dependencies, + I should have used gulp validate


I’m having the same issue. What dependencies where you missing?

Eventually those didn’t help.
It is a windows problem, and an open issue here - https://github.com/driftyco/ionic-app-scripts/issues/924
I talked to the maintainer, he is aware, and plan to fix it.

Alright, thanks. Guess will have to use my linux machine for that.