Error: exit code12 at ChildProcess.child.on.code nodejs 使用子進程報錯

nodejs 使用子進程報錯 只需添加{execArgv: ['--harmony']}node const child_process = require('child_process'); let child = child_process.fork('./child.js', 'first_child', {execArgv: ['--harmony']});
相關文章
相關標籤/搜索