什么是“节点”工作的问题,但“nodemon”是不是在Windows 7 64位node.js woking?

我是node.js的新手 node工作正常,但是当我安装了nodemon软件包时,即使在全局安装的情况下,也会exception in nodemon killing node时出现错误: exception in nodemon killing node

  22 Jun 13:07:29 - [nodemon] v1.3.7 22 Jun 13:07:29 - [nodemon] to restart at any time, enter `rs` 22 Jun 13:07:29 - [nodemon] watching: *.* 22 Jun 13:07:29 - [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\username\AppData\Roaming\npm\node_modules\nodemon\bin\nodemon. js server.js --dump At http://github.com/remy/nodemon/issues/new 

可能的解决scheme。

1.权限

问题可能在你的文件权限。 在git bash中执行或者从windows中给项目文件夹授予完全权限。

 $ chmod -R 777 [folder] 

2.环境variables

在PATH中缺less“C:\ Windows \ System32 \”。

Github问题

3.重新安装

使用npm完全删除nodemon并尝试重新安装。

 npm uninstall -g nodemon 

4.更新nodejs

如果你有和旧版本的nodejs,尝试更新它。 我宁愿完全删除nodejs并重新安装它。

逐步删除窗口中的nodejs

注意:您的问题可能不够丰富,无法给出正确的答案。 如果这2个解决scheme无效,请提供更多关于这个问题的信息。

帮助产卵find你的nodemon.cmd是这样的:

 var nodemonCmd = (process.platform == 'win32') ? 'node_modules\\.bin\\nodemon.cmd' : 'nodemon' myApp = spawn(nodemonCmd, ['build/server.bundle']); 

希望它的作品:)