npm安装child_process不能正常工作
我想使用child_process模块从node.js运行脚本,但是当我运行命令
npm install child_process我得到以下错误:
npm http GET https://registry.npmjs.org/ChildProcess npm http 404 https://registry.npmjs.org/ChildProcess npm ERR! 404 'ChildProcess' is not in the npm registry. npm ERR! 404 You should bug the author to publish it
只是想知道的是child_process模块删除或我错拼模块名称。
谢谢。
您不必将其作为模块安装,而是与node.js捆绑在一起。 http://nodejs.org/api/child_process.html
我在https://www.npmjs.com/browse/keyword/child_process中search,没有关于child_process的内容。 只需要('child_process')并使用它。