【发布时间】:2021-06-01 00:45:32
【问题描述】:
注意:this question 没有帮助我。
我正在尝试为Atom 创建一个任务运行程序,并且已经到了运行多行 shell 脚本的地步。但是
const child_process = require("child_process");
child_process.exec(
`rm -rf something
another
directory`,
(error, stdout, stderr) => {
/*...*/
},
)
导致节点认为another 和directory 是命令。
【问题讨论】:
标签: javascript node.js child-process