“子进程”应该是一个内置的节点库。然而,当我在节点shell中输入"require('child-process'),我得到一个错误:“无法找到模块'child-process'”。你知道为什么会发生这种情况吗?
发布于 2013-04-22 20:32:20
使用require('child_process'); (带下划线,而不是连字符)。
require('child_process');
https://stackoverflow.com/questions/16147186
相似问题