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

前端 未结 15 1924
眼角桃花
眼角桃花 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条回答
  •  -上瘾入骨i
    2020-11-28 04:37

    fsevents is dealt differently in mac and other linux system. Linux system ignores fsevents whereas mac install it. As the above error message states that fsevents is optional and it is skipped in installation process.

    You can run npm install --no-optional command in linux system to avoid above warning.

    Further information

    https://github.com/npm/npm/issues/14185

    https://github.com/npm/npm/issues/5095

提交回复
热议问题