[英]npm install fsevents errors
Hello i'am trying to install fsevents whitch npm .
您好,我正在尝试安装 fsevents whitch npm 。 Therefore i use the following versions:
因此我使用以下版本:
Node : 4.2.6节点:4.2.6
NPM : 3.5.2 NPM:3.5.2
OS : Ubuntu 16.04 LTS操作系统:Ubuntu 16.04 LTS
i 'am executing the statement我正在执行语句
Edited
已编辑
npm install fsevents --no-optional --save react-redux
after executing i get the following errors back in the console执行后我在控制台中得到以下错误
Edited
已编辑
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
Please can you help fix this problem.请你能帮助解决这个问题。
Manny thanks曼尼谢谢
Erik埃里克
The comments above tell you what you already know.上面的评论告诉你你已经知道了什么。 Perhaps you should've phrased this as a question.
也许您应该将其表述为一个问题。 :-)
:-)
Assuming the question is how to prevent fserrors on a non-Mac system, the solution I found is this:假设问题是如何在非 Mac 系统上防止 fserrors,我找到的解决方案是:
Remove fserrors from your package.json and remove the folder.从您的 package.json 中删除 fserrors 并删除该文件夹。
rm -r ./node_modules/fserrors
Then run:然后运行:
npm rebuild
Problem solved.问题解决了。
I added the following to my package.json file:我将以下内容添加到我的package.json文件中:
"optionalDependencies": {
"fsevents": "2.1.2"
},
Then run npm rebuild (or wait for the next time you need the npm command) and the warning is gone.然后运行npm rebuild (或等待下次需要 npm 命令时),警告就消失了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.