Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/35.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运行.EXE文件?_Node.js_Server_Exe - Fatal编程技术网

如何在网站中使用Node.js运行.EXE文件?

如何在网站中使用Node.js运行.EXE文件?,node.js,server,exe,Node.js,Server,Exe,我已尝试使用此代码在服务器上运行.exe文件,但它正在显示 错误:无法处理我的网页上的请求 请帮助我。var exec=require('child\u process')。execFile希望你有这个。。你能加上你看到的错误吗?@SunilBN我已经加上了。 export const helloWorld = functions.https.onRequest((request,response) => { console.log("fun() st

我已尝试使用此代码在服务器上运行.exe文件,但它正在显示

错误:无法处理我的网页上的请求


请帮助我。

var exec=require('child\u process')。execFile希望你有这个。。你能加上你看到的错误吗?@SunilBN我已经加上了。
         export const helloWorld = functions.https.onRequest((request,response) => {
          console.log("fun() start");
          exec('Notepad.exe', function(err, data) {  
           console.log(err)
               console.log(data.toString());                       

               });