我在为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) **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)