在做前端项目的时候执行命令:

npm install --save-dev file-loader@1.1.6 --registry=https://registry.npm.taobao.org

出现错误提示:

用npm安装插件时报错: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents)

 

fsevents不在package.json里,但是仍然安装了,是因为你的系统是Windows系统,fsevents是苹果系统的可选依赖,你的项目有可能是团队项目,别人在他的mac上安装了fsevents相关依赖库,所以到这边你也就安装到你的windows上边了。

你可以检查你的package.json 文件中是不是有fsevents相关依赖,删除即好! 
如果没有,删除node_modules文件夹,重新安装各项依赖就好了

fsevent是mac系统的,在win或者Linux下使用了,所以会有警告,忽略即可。

fsevent的作用是能够检测文件目录的修改,可以记录恶意软件的非法操作,获取恶意软件的完整路径,删除和修改日期。

相关文章:

  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
猜你喜欢
  • 2021-09-25
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案