npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 error handling

Screenshot of error report
Insert picture description here
Step 1: Add this object to package.json

  "optionalDependencies": {
    "fsevents": "*"
  }

Step 2: Delete the original installed package and the generated package-lock.json file

Step 3: Re-execute the installation command

Guess you like

Origin blog.csdn.net/weixin_42645716/article/details/112790766