npm install child_process无效

And*_*ner 11 node.js

我想使用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
Run Code Online (Sandbox Code Playgroud)

只是想知道是删除了child_process模块​​还是我拼错了模块名称.

谢谢.

Chr*_*ris 27

您不必将其安装为模块,它与node.js捆绑在一起.http://nodejs.org/api/child_process.html

  • 但我收到这个错误。找不到模块:错误:无法解析“child_process” (2认同)