[英]npm install fsevents errors
您好,我正在嘗試安裝 fsevents whitch npm 。 因此我使用以下版本:
節點:4.2.6
NPM:3.5.2
操作系統:Ubuntu 16.04 LTS
我正在執行語句
已編輯
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: 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
請你能幫助解決這個問題。
曼尼謝謝
埃里克
上面的評論告訴你你已經知道了什么。 也許您應該將其表述為一個問題。 :-)
假設問題是如何在非 Mac 系統上防止 fserrors,我找到的解決方案是:
從您的 package.json 中刪除 fserrors 並刪除該文件夾。
rm -r ./node_modules/fserrors
然后運行:
npm rebuild
問題解決了。
我將以下內容添加到我的package.json文件中:
"optionalDependencies": {
"fsevents": "2.1.2"
},
然后運行npm rebuild (或等待下次需要 npm 命令時),警告就消失了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.