Search code examples
angularprotractorgulp-protractor

Can't use protractor - spawn protractor ENOENT


I want to run tests for a project, using Windows 10. The tests spawn protractor, which errors:

Error: spawn protractor ENOENT

I tried to do everything that might solve it, including:

  • Adding chromeOnly to config
  • Adding directConnect to config
  • Adding System32 to path
  • Adding JDK/.bin and JRE/.bin to path

I still get this error when trying to spawn protractor.

Versions:

  • Node: v6.9.1
  • Protractor: v2.5.1 (also tried v5.1.1)

Source code: https://github.com/driftyco/ionic/blob/master/scripts/gulp/tasks/snapshot.ts#L80


Solution

  • For closing purposes. The issue was identified in https://github.com/nodejs/node/issues/3675

    because...windows.