大佬教程收集整理的这篇文章主要介绍了npm 在 npm start,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个新创建的 react-app,在我第一次启动 npm 时,它抛出了一个未处理的错误。
StarTing the development server...
node:events:342
throw er; // Unhandled 'error' event
^
Error: spawn /usr/bin/firefox ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:480: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:480:16)
at processticksAndRejections (node:internal/process/task_queues:83:21) {
errno: -2,code: 'ENOENT',syscall: 'spawn /usr/bin/firefox',path: '/usr/bin/firefox',spawnargs: [ 'http://localhost:3000' ]
我现在没有任何依赖项,但我不明白是什么导致了这个错误。但是开发服务器以 sudo npm start
以上是大佬教程为你收集整理的npm 在 npm start全部内容,希望文章能够帮你解决npm 在 npm start所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。