0

每当我尝试启动开发服务器时,我都必须使用sudo yarn start.

这显然是不可取的。

如果我不这样做sudo,我会收到以下错误:

Starting the development server...

node:events:368
      throw er; // Unhandled 'error' event
      ^

Error: spawn firedragon ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
    at onErrorNT (node:internal/child_process:477:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
    at onErrorNT (node:internal/child_process:477:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn firedragon',
  path: 'firedragon',
  spawnargs: [ 'http://localhost:3001' ]
}

我尝试更改npm二进制文件的权限,/usr/bin/并让自己陷入了整个sudo权限崩溃,幸运的是我让自己摆脱了。

我还尝试从我的机​​器上擦除 , 和 的所有痕迹yarnnpm重新node安装所有内容均无济于事。

如果有人有任何答案,请,我可以使用你的帮助。

4

0 回答 0