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

前端 未结 15 1923
眼角桃花
眼角桃花 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:44

    I had got this error, Linux system(Ubuntu) and This might happen when you run :

    npm install

    1) If the project is not present in your localdisk/computer, copy it to your computer and try again. So you get the permission to access folder (Just make sure you have access permission).

    2) If you still get some warnings or errors, run:

    npm audit fix

    This will solve vulnerabilities in your dependencies and can help you fix a vulnerability by providing simple-to-run npm commands and recommendations for further troubleshooting.

    Hope it helps!

提交回复
热议问题