“节点"是什么问题?正在工作,但“nodemon"不是在 node.js 中的 Windows 7 64 位上工作吗? [英] What is the issue "node" is working but "nodemon" is not woking on windows 7 64-bit in node.js?
问题描述
我是 node.js 的新手.node
工作正常,但是当我安装 nodemon
包时,它给出了一个错误:nodemon 杀死节点的异常
,即使在全局安装时也是如此.
I am new to node.js. node
is working fine but when I installed the nodemon
package, it gives an error: exception in nodemon killing node
, even when installed globally.
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
推荐答案
可能的解决方案.
1.权限
文件权限可能有问题.在 git bash 中执行或从 windows 中执行赋予项目文件夹完全权限的方式.
Problem maybe in your file permissions. Execute in git bash or from windows way of giving full permission to the project folder.
$ chmod -R 777 [folder]
2.环境变量
路径中缺少C:\Windows\System32\".
Missing "C:\Windows\System32\" in the PATH.
3.重新安装
使用 npm 完全删除 nodemon 并尝试重新安装.
Completely remove nodemon using npm and try reinstalling.
npm uninstall -g nodemon
4.更新 nodejs
如果您有旧版本的 nodejs,请尝试更新它.我更喜欢完全删除 nodejs 并重新安装它.
If you have and old version of nodejs, try updating it. I prefer completely removing nodejs and reinstalling it again.
注意:您的问题可能不够丰富,无法给出正确答案.如果这 2 个解决方案不起作用,请提供有关该问题的更多信息.
Note: Your question maybe not rich enough to give an correct answer. please include more information about the question if this 2 solutions didn't work.
这篇关于“节点"是什么问题?正在工作,但“nodemon"不是在 node.js 中的 Windows 7 64 位上工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!