[英]eslint-config-airbnb on ubuntu 16.04
嘗試在Ubuntu 16.04上安裝eslint-config-airbnb時遇到一些問題
$ npm install eslint-config-airbnb
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.2
我嘗試安裝fsevents,這會產生此錯誤:
npm ERR! notsup Not compatible with your operating system or architecture: fsevents@1.1.2
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64
linux是否支持eslint-config-airbnb?
試試這個->
rm -rf node_modules/ && npm install && npm rebuild
編輯: rm -rf node_modules/
遞歸方式從node_modules
文件夾中刪除內容。 npm install
將再次安裝所有軟件包,並且npm rebuild
嘗試重建您的項目。
我在全球安裝了它,由於某種原因,它奏效了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.