npm install fsevents 错误 [英] npm install fsevents errors
问题描述
您好,我正在尝试安装 npm 的 fsevents.因此我使用以下版本:
Hello i'am trying to install fsevents whitch npm. Therefore i use the following versions:
节点:4.2.6
Node : 4.2.6
NPM:3.5.2
操作系统:Ubuntu 16.04 LTS
OS : Ubuntu 16.04 LTS
我正在执行语句
已编辑
npm install fsevents --no-optional --save react-redux
执行后,我在控制台中返回以下错误
after executing i get the following errors back in the console
已编辑
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.
曼尼谢谢
埃里克
推荐答案
上面的评论告诉你你已经知道的东西.也许你应该把它写成一个问题.:-)
The comments above tell you what you already know. Perhaps you should've phrased this as a question. :-)
假设问题是如何在非 Mac 系统上防止 fserrors,我找到的解决方案是:
Assuming the question is how to prevent fserrors on a non-Mac system, the solution I found is this:
从 package.json 中删除 fserrors 并删除文件夹.
Remove fserrors from your package.json and remove the folder.
rm -r ./node_modules/fserrors
然后运行:
npm 重建
问题解决了.
这篇关于npm install fsevents 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!