繁体   English   中英

ubuntu 16.04上的eslint-config-airbnb

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM