我在启动npm start时遇到问题

问题描述

启动开发服务器...

events.js:291 抛出//未处理的“错误”事件 ^

错误生成Powershell ENOENT 在Process.ChildProcess._handle.onexit(内部/child_process.js:268:19) 在onErrorNT(internal / child_process.js:464:16) 在processticksAndRejections(internal / process / task_queues.js:80:21)处在ChildProcess实例上引发的“错误”事件位于: 在Process.ChildProcess._handle.onexit(内部/child_process.js:274:12) 在onErrorNT(internal / child_process.js:464:16) 在processticksAndRejections(internal / process / task_queues.js:80:21){ errno:-4058, 代码:“ ENOENT”, syscall:“ spawn powershell”, 路径:“ powershell”, spawnargs:[ '-noprofile', '-NonInteractive', “ –ExecutionPolicy”, '旁路', '-EncodedCommand', 'UwB0AGEAcgB0ACAAIgBgACIAaAB0AHQAcAA6AC8ALwBsAG8AYwBhAGwAaABvAHMAdAA6ADMAMAAwADAAYAAiACIA' ] } npm ERR!代码ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected]开始:react-scripts start npm ERR!退出状态1 npm ERR! npm ERR!在[email protected]启动脚本处失败。 npm ERR! npm可能不是问题。上面可能还有其他日志记录输出

npm ERR!可以在以下位置找到此运行的完整日志: npm ERR! C:\ Users \ HP \ AppData \ Roaming \ npm-cache_logs \ 2020-09-01T11_15_01_794Z-debug.log

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)