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

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

    npm i -f
    

    I'd like to repost some comments from this thread, where you can read up on the issue and the issue was solved.

    This is exactly Angular's issue. Current package.json requires fsevent as not optionalDependencies but devDependencies. This may be a problem for non-OSX users.

    Sometimes

    Even if you remove it from package.json npm i still fails because another module has it as a peer dep.

    So

    if npm-shrinkwrap.json is still there, please remove it or try npm i -f

提交回复
热议问题