2016-11-18 238 views
1

你好我正试图安装fsevents whitch npm。因此我用下面的版本:npm安装fsevents错误

  • 节点:4.2.6
  • NPM:3.5.2
  • 操作系统:Ubuntu的LTS 16.04

    我正在执行该语句

编辑

npm install fsevents --no-optional --save react-redux 

执行我收到以下错误早在编

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: [email protected] 
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 

请你帮助解决这个问题控制台

后。

曼尼感谢

埃里克

+2

错误很明显......它不支持Linux。 '不兼容您的操作系统或 体系结构:fsevents @ 1.0.15' –

+0

为了扩展@ JoeClay的评论,'fsevents'是一个mac-only文件监视包。 – RyanZim

+1

???同样的问题,但答案没有帮助。我们看到npm在Ubuntu OS上安装OSX软件包。问题是为什么以及如何解决这个问题? – Hanske1967

回答

1

上述意见告诉你,你已经知道。也许你应该说这是一个问题。 :-)

假设的问题是如何防止非Mac系统fserrors,我找到了解决办法是这样的:

从您的package.json删除fserrors并删除该文件夹。

rm -r ./node_modules/fserrors

然后运行:

npm rebuild

问题解决了。

+0

我的设置中没有看到任何'/ node_modules/fserrors'。另外,我的package.json不包含'fserrors'。我如何解决它? –

+0

问一个新问题https://stackoverflow.com/questions/46929196/how-to-solve-npm-install-throwing-fsevents-warning-on-non-mac-os –