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

编程入门 行业动态 更新时间:2024-10-24 12:32:18
本文介绍了inotify@1.4.1的不受支持的平台:想要的{"os":"linux","arch":"any"}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

I am coming across a very bizarre error when installing packages for my webpack/reactjs application.

我当前正在尝试安装

npm install copy-webpack-plugin --save dev

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

The build/start scripts fail and the following error is shown in the terminal:

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

这意味着绝对要注意我,我无法在网上找到任何清晰的解释.我不知道为什么需要inotify或在何时何地安装了inotify.

This means absolutely noting to me and I cannot find any clear explanations online.I do not know why inotify is needed or when/where it has been installed.

Package.json脚本:

Package.json scripts:

"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" },

推荐答案

您的命令中有错字:

npm install copy-webpack-plugin --save dev

应该是:

npm install copy-webpack-plugin --save-dev

(您忘记了破折号)

拼写错误将使npm尝试安装 www.npmjs/package/dev ,具体取决于inotify.

The typo will make npm try to install www.npmjs/package/dev, which depends on inotify.

您的错误消息是因为inotify仅适用于Linux,而您适用于Mac.

Your error message is because inotify only works on Linux and you are on a Mac.

更多推荐

inotify@1.4.1的不受支持的平台:想要的{"os":"linux","arch":&quo

本文发布于:2023-07-03 21:58:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1012547.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不受   平台   inotify   arch   linux

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!