npm - 安装 Bugsnag 时出现错误“错误:spawn npm ENOENT”
问题描述
这是我第一次在这里发帖,如果我不遵守某些规则或格式不正确,请大家见谅。我正在使用 React Native 和 Expo 制作应用程序,当我尝试安装 bugsnag 时出现此错误。
$ npx bugsnag-expo-cli init
√ @bugsnag/expo does not appear to be installed, do you want to install it? ... yes
√ If you want the latest version of @bugsnag/expo hit enter, otherwise type the version you want ... latest
√ Using yarn or npm? » npm
> Installing @bugsnag/expo with npm. This could take a while!
Error: spawn npm ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:465:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
解决方案
您是否尝试bugsnag-expo-cli
在 Windows 上运行?Expo CLI 目前仅支持 MacOS 和 Linux:
https ://docs.bugsnag.com/platforms/react-native/expo/#installation-and-configuration
作为 CLI 的替代方案,您可以遵循手动集成指南: https ://docs.bugsnag.com/platforms/react-native/expo/manual-setup/
如果您仍有问题,我建议您通过 support@bugsnag.com 与我们联系,我们可以进行更详细的查看。
推荐阅读
- c# - 不同 dbContexts 上的异步任务。说第二次操作是在这种情况下开始的
- flutter - Flutter - 如何使用 SQFLite 包作为 Flutter web 的本地存储
- python - 无法相对定位标签以保持在中间顶部
- android - 从下载文件夹发送文件时出错(没有这样的文件或目录)
- c++ - 由于在 Bjarne Stroustrup “使用 c++ 的编程和实践”中找不到符号而导致的链接错误
- java - Spring Security 中需要授予权限的文本表示
- c# - Microsoft 图形资源管理器守护程序应用程序创建计划程序任务
- stripe-payments - 在 Stripe 中尽早完成试验
- netty - ClassPathXmlApplicationContext 自动关闭,调试日志未显示任何异常
- typescript - 在邮递员中访问 API 时出错