spawn

What is an unhandled promise rejection?

我的梦境 提交于 2019-11-26 01:57:53
问题 For learning Angular 2, I am trying their tutorial. I am getting an error like this: (node:4796) UnhandledPromiseRejectionWarning: Unhandled promise rejection (r ejection id: 1): Error: spawn cmd ENOENT [1] (node:4796) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node. js process with a non-zero exit code. I went through different questions and answers in SO but could not find out what an \"Unhandled

How do I debug “Error: spawn ENOENT” on node.js?

蓝咒 提交于 2019-11-25 22:34:09
问题 When I get the following error: events.js:72 throw er; // Unhandled \'error\' event ^ Error: spawn ENOENT at errnoException (child_process.js:1000:11) at Process.ChildProcess._handle.onexit (child_process.js:791:34) What procedure can I follow to fix it? Author note : Lots of issues with this error encouraged me to post this question for future references. Related questions: using spawn function with NODE_ENV=production node.js child_process.spawn ENOENT error - only under supervisord spawn