How to solve npm install throwing fsevents warning on non-MAC OS?

前端 未结 15 2005
眼角桃花
眼角桃花 2020-11-28 04:07

Following warning is being thrown on npm install command -

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\\rea
ct-         


        
15条回答
  •  盖世英雄少女心
    2020-11-28 04:46

    I also had the same issue though am using MacOS. The issue is kind of bug. I solved this issue by repeatedly running the commands,

    sudo npm cache clean --force 
    sudo npm uninstall 
    sudo npm install
    

    One time it did not work but when I repeatedly cleaned the cache and after uninstalling npm, reinstalling npm, the error went off. I am using Angular 8 and this issue is common

提交回复
热议问题