Skip to content

starter.js throws 'spawn webpack-dev-server ENOENT' error on Windows 10 #8

@yolandavdvegt

Description

@yolandavdvegt

starter.js throws throws an error while spawning the webpack-dev-server on Windows 10.

$ npm start

> epp@0.0.0 start C:\Users\Yolanda\Projects\epp
> node starter.js --2nd

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

Error: spawn webpack-dev-server ENOENT
    at exports._errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:359:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v7.1.0
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! epp@0.0.0 start: `node starter.js --2nd`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the epp@0.0.0 start script 'node starter.js --2nd'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the epp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node starter.js --2nd
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs epp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls epp
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Yolanda\Projects\epp\npm-debug.log

The solution that worked for me is to spawn webpack-dev-server by win-spawn

Fix in this pull request: #9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions