尝试在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
eslint-config-airbnb是否支持linux?
2 回答
我在全球范围内安装了它,并且出于某种原因,这是有效的
试试这个 - >
编辑:
rm -rf node_modules/
以递归方式从node_modules
文件夹中删除内容 .npm install
将再次安装所有包,npm rebuild
尝试重建您的项目 .