简体   繁体   English

ubuntu 16.04上的eslint-config-airbnb

[英]eslint-config-airbnb on ubuntu 16.04

I'm running into some issues when trying to install 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

I tried installing fsevents, and that produces this error: 我尝试安装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

Is eslint-config-airbnb supported on linux? linux是否支持eslint-config-airbnb?

try this-> 试试这个->

rm -rf node_modules/ && npm install && npm rebuild

EDIT: rm -rf node_modules/ recursively removes stuff from node_modules folder. 编辑: rm -rf node_modules/递归方式从node_modules文件夹中删除内容。 npm install will install all the package again and npm rebuild tries to rebuild your project. npm install将再次安装所有软件包,并且npm rebuild尝试重建您的项目。

我在全球安装了它,由于某种原因,它奏效了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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