Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我使用shelljs时,如何通过打开另一个 shell 窗口或选项卡来执行脚本?
shelljs
我需要同时启动 api 服务器和构建应用程序。喜欢
var shell = require('shelljs'); ... shell.exec('node server.js'); shell.exec('npm run build')