我在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?
发布于 2017-08-25 05:26:17
试试这个->
rm -rf node_modules/ && npm install && npm rebuild编辑:rm -rf node_modules/递归地从node_modules文件夹中删除内容。npm install将再次安装所有软件包,并且npm rebuild将尝试重新构建您的项目。
发布于 2017-08-25 05:37:13
我在全球安装了它,出于某种原因,它起作用了。
https://stackoverflow.com/questions/45871101
复制相似问题