inotify@1.4.1 不支持的平台:想要 {“os”:“linux”,“arch”:“any”}

时间:2021-06-02 12:40:31

标签: node.js macos npm

在为我的 expo/reactjs 应用程序安装软件包时,我遇到了一个非常奇怪的错误。

我正在尝试安装

npm install dev

构建/启动脚本失败,终端显示以下错误:

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for inotify@1.4.6: wanted {"os":"linux","arch":"any"} (current: {"os":"darwin","arch":"x64"})

我正在尝试安装在 mac os 系统中。我该如何解决这个问题?

Package.json 脚本:

scripts": {
    "dev": "nodemon src/server.js",
    "dev:debug": "nodemon --inspect src/server.js"
  },

0 个答案:

没有答案