相关疑难解决方法(0)

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

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

我目前正在尝试安装

npm install copy-webpack-plugin --save dev

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

Unsupported platform for inotify@1.4.1: wanted {"os":"linux","arch":"any"} (current: {"os":"darwin","arch":"x64"})
Run Code Online (Sandbox Code Playgroud)

这意味着绝对注意到我,我在网上找不到任何明确的解释.我不知道为什么需要inotify或者安装的时间/地点.

Package.json脚本:

  "scripts": {
    "start": "node server.js",
    "build": "cross-env BABEL_ENV=production ./node_modules/.bin/webpack --config webpack.config.production.js",
    "lint": "eslint --cache --ignore-path .gitignore --format=node_modules/eslint-formatter-pretty . *.js",
    "test": "npm run lint"
  },
Run Code Online (Sandbox Code Playgroud)

node.js webpack package.json

9
推荐指数
1
解决办法
3643
查看次数

如何解决“inotify@1.4.2不支持的平台”

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

**npm ERR!** notsup Valid OS:    linux
**npm ERR!** notsup Valid Arch:  any
**npm ERR!** notsup Actual OS:   darwin
**npm ERR!** notsup Actual Arch: x64
Run Code Online (Sandbox Code Playgroud)

node.js reactjs

2
推荐指数
1
解决办法
4600
查看次数

标签 统计

node.js ×2

package.json ×1

reactjs ×1

webpack ×1