Fsevents@1.2.4 appears when vue project installs dependencies with yarn

the yarn installation dependency in the project keeps reporting the problem of fsevents@1.2.4 module incompatibility

info fsevents@1.2.4: The platform "win32" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
error eslint@5.11.1: The engine "node" is incompatible with this module. Expected version "^6.14.0 || ^8.10.0 || >=9.10.0". Got "8.9.1"
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Mar.28,2022

fsevents is used for MacOS. Under window installation, you will report npm err or warn
to delete the fsevents dependency in dependencies in package.json. Add the following configuration

  "optionalDependencies": {
    "fsevents": "xxx"
  },

optionalDependencies: optional dependencies. If there are some dependency packages, the project can still run or you want npm to continue to run even if the installation fails.


Expected version "^ 6.14.0 | | ^ 8.10.0 | | > = 9.10.0". Got "8.9.1"

you are currently using the wrong version of node. You can upgrade to 8.10.0 or 9.10.0 .
it is recommended to use more than 10, use nvm ls-remote to view and install.


delete the dependency package and reinstall it with npm install


so how to solve this problem in the end

Menu