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

Bha*_*mar 2 node.js reactjs

**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)

Pra*_*rma 5

这可能是由于开发包是通过 npm 安装的,这个问题通常发生在 Mac 操作系统上。

运行以下命令以删除开发包。

npm uninstall dev --save
Run Code Online (Sandbox Code Playgroud)

我希望我能够帮助回答这个问题。