您好,我正在尝试安装fsevents whitch npm。因此,我使用以下版本:
操作系统:Ubuntu 16.04 LTS
我正在执行语句
已编辑
npm install fsevents --no-optional --save react-redux
Run Code Online (Sandbox Code Playgroud)
执行后,我在控制台中得到以下错误
已编辑
npm ERR! Linux 4.4.0-45-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "fsevents" "--no-
optional" "--save" "react-redux"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code EBADPLATFORM
npm ERR! notsup Not compatible with your operating system or
architecture: fsevents@1.0.15
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64
npm ERR! Please include the following file with any support request:
npm ERR! /home/erik/git/test/npm-debug.log
Run Code Online (Sandbox Code Playgroud)
请您帮忙解决此问题。
曼尼谢谢
埃里克
上面的评论告诉你你已经知道的事情。也许你应该把这个表述为一个问题。:-)
假设问题是如何防止非Mac系统上的fserrors,我找到的解决方案是这样的:
从 package.json 中删除 fserrors 并删除该文件夹。
rm -r ./node_modules/fserrors
然后运行:
npm rebuild
问题解决了。