I'm running into some issues when trying to install eslint-config-airbnb on Ubuntu 16.04
$ 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:
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?
try this->
rm -rf node_modules/ && npm install && npm rebuild
EDIT: rm -rf node_modules/
recursively removes stuff from node_modules
folder. npm install
will install all the package again and npm rebuild
tries to rebuild your project.
我在全球安装了它,由于某种原因,它奏效了。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.