npm - npm 错误!notsup fsevents@2.1.3 不支持的平台:想要 {"os":"darwin"}(当前:{"os":"win32","arch":"ia32"})
问题描述
我有一个基于 create-react-app 的本地仓库。远程仓库中的文件工作正常,但本地文件存在问题。
我尝试npm install
在我的本地存储库中运行,并弹出一个错误显示
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin"} (current: {"os":"win32","arch":"ia32"})
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: undefined
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: ia32
我还尝试运行npm start
{react-scripts start} 并引发了一堆错误。我发现很难理解 npm 或 json 文件是否有问题。而且我不知道问题可能出在哪里。我的 Github 中的主要 repo 很好,在本地克隆后,我无法在本地运行它。
解决方案
推荐阅读
- python - 在格式说明符中使用字母“f”时究竟做了什么?
- kotlin - 存储静态数据的好方法是什么?就像塔防游戏地图上的物品及其统计数据、奖励数据或航点
- r - 这个涉及 train 功能的 R 代码哪里出错了?
- c++ - 将指针对象保存到系统并在c ++(不是c)中加载它
- node.js - Firebase 函数 - 无法收集
- amazon-web-services - 如何控制 AWS 网络负载均衡器的来源?
- webpack - 从手表中排除文件夹
- python - RHS 范围意义的语法
- liquid - 有没有办法将格式应用于 Liquid 输出的值?
- javascript - 按下跨度时显示/隐藏 HTML 文本