首页 > 解决方案 > 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 很好,在本地克隆后,我无法在本地运行它。

标签: npmcreate-react-appnpm-installnpm-start

解决方案


推荐阅读