Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js YUI压缩机和PHPStorm_Node.js_Phpstorm - Fatal编程技术网

Node.js YUI压缩机和PHPStorm

Node.js YUI压缩机和PHPStorm,node.js,phpstorm,Node.js,Phpstorm,我试图在PHPStorm中添加一个filewatcher来自动压缩我的js文件。我遵循了,但我有以下错误: cmd.exe /D /C C:/Users/Sofiane/node_modules/.bin/yuicompressor.cmd reglements.js >-o reglements.min.js events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at

我试图在PHPStorm中添加一个filewatcher来自动压缩我的js文件。我遵循了,但我有以下错误:

cmd.exe /D /C C:/Users/Sofiane/node_modules/.bin/yuicompressor.cmd reglements.js >-o reglements.min.js

events.js:72
    throw er; // Unhandled 'error' event
          ^
Error: spawn ENOENT
at errnoException (child_process.js:1011:11)
at Process.ChildProcess._handle.onexit (child_process.js:802:34)

Process finished with exit code 8
我真的不明白,这是我第一次使用Node.js


谢谢你的帮助

该错误通常意味着child_process.spawn由于找不到可执行文件而抛出enoint。尝试将java.exe的路径添加到您的系统路径-是否有帮助?另一种解决方案是将节点\u modules\yuicompressor\build\yuicompressor-2.4.8.jar的路径指定为文件查看器中的程序,而不是yuicompressor.cmd