Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

[windows] fix spawn [..]\mocha ENOENT error #298

Merged
merged 1 commit into from
Jul 31, 2017

Conversation

adammankowski1
Copy link
Contributor

@adammankowski1 adammankowski1 commented Jul 14, 2017

This applies to neutrino-preset-mocha
I couldn't run test command on the Windows, it was failing with

events.js:182
      throw er; // Unhandled 'error' event
      ^

Error: spawn <5 directories deep>\node_modules\mocha\bin\mocha ENOENT
    at exports._errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:189:19)
    at onErrorNT (internal/child_process.js:366:16)
    at _combinedTickCallback (internal/process/next_tick.js:102:11)
    at process._tickCallback (internal/process/next_tick.js:161:9)
npm ERR! Test failed.  See above for more details.

No matter which version of node.js, or neutrino I have installed.

Copy link
Member

@eliperelman eliperelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@eliperelman eliperelman merged commit f1d7d15 into neutrinojs:master Jul 31, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants