Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exception in nodemon killing node - Running nodemon on Windows 10 #616

Closed
giacomorebonato opened this issue Aug 23, 2015 · 5 comments
Closed

Comments

@giacomorebonato
Copy link

I am trying to execute nodemon on Windows 10

$ > node-debug server.js
> nodemon server.js
23 Aug 10:01:12 - [nodemon] v1.4.1
23 Aug 10:01:12 - [nodemon] to restart at any time, enter `rs`
23 Aug 10:01:12 - [nodemon] watching: *.*
23 Aug 10:01:12 - [nodemon] starting `node server.js`
exception in nodemon killing node
Error: spawn cmd ENOENT
    at exports._errnoException (util.js:746:11)
    at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
    at child_process.js:1144:20
    at process._tickCallback (node.js:355:11)

----------------------------------------------------------
If appropriate, please file an error with the output from:
$ node C:\Users\Admin\AppData\Roaming\npm\node_modules\nodemon\bin\nodemon.js server.js --dump
At http://github.com/remy/nodemon/issues/new
----------------------------------------------------------

And this is the dump

23 Aug 10:02:51 - [nodemon] v1.4.1
23 Aug 10:02:51 - [nodemon] to restart at any time, enter `rs`
23 Aug 10:02:51 - [nodemon] watching: *.*
--------------
node: v0.12.7
nodemon: v1.4.1
command: node C:\Users\Admin\AppData\Roaming\npm\node_modules\nodemon\bin\nodemon.js server.js --dump
cwd: C:\Users\Admin\Dev\mino_api_boilerplate\lib
OS: win32 x64
--------------
{ run: false,
  system:
   { cwd: 'C:\\Users\\Admin\\Dev\\mino_api_boilerplate\\lib',
     useFind: false,
     useWatch: true,
     useWatchFile: false },
  required: false,
  dirs: [ 'C:\\Users\\Admin\\Dev\\mino_api_boilerplate\\lib' ],
  timeout: 1000,
  options:
   { dump: true,
     ignore:
      [ '.git',
        'node_modules',
        'bower_components',
        '.sass-cache',
        re: /\.git|node_modules|bower_components|\.sass\-cache/ ],
     watch: [ '*.*', re: /.*\..*/ ],
     restartable: 'rs',
     execMap: { py: 'python', rb: 'ruby' },
     stdin: true,
     runOnChangeOnly: false,
     verbose: false,
     stdout: true,
     execOptions:
      { script: 'server.js',
        exec: 'node',
        args: [],
        scriptPosition: 0,
        nodeArgs: undefined,
        ext: 'js',
        env: {},
        execArgs: [] },
     monitor:
      [ '*.*',
        '!.git',
        '!node_modules',
        '!bower_components',
        '!.sass-cache' ] },
  load: [Function],
  reset: [Function: reset],
  lastStarted: 0,
  loaded: [],
  command:
   { raw: { executable: 'node', args: [ 'server.js' ] },
     string: 'node server.js' },
  offset: 0 }
--------------
@giacomorebonato
Copy link
Author

it was missing C:\Windows\System32\ in the PATH.
Problem solved.

@RifeWang
Copy link

RifeWang commented Mar 6, 2017

@giacomorebonato I still understand how to solve this problem.

@RifeWang
Copy link

RifeWang commented Mar 6, 2017

@giacomorebonato I solved this problem. update path and then restart my computer.

@mohammad-quanit
Copy link

Can anyone tell me how to update path?

@marquizzo
Copy link

@mohammad-quanit

Windows 10:
Control Panel > All Control Panel Items > System > Advanced system settings [on left bar]
Advanced Tab > Environment Variables Button
Select PATH variable, click Edit...
Click New button, and it'll allow you to add a new location to your PATH. Make sure you don't remove existing lines, or you'll break other programs that need it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants