npm install 警告npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules)

Reason:
fsevents is not in package.json, but it is still installed, because your system is a Windows system, fsevents is an optional dependency of Apple's system, your project may be a team project, and someone else installed fsevents on his mac Related dependent libraries, so here you will also install it on your windows. You can check if there are fsevents related dependencies in your package.json file, just delete it!
If not, delete the node_modules folder and reinstall the dependencies.

npm install --no-optional --verbose

Guess you like

Origin blog.csdn.net/weixin_44517301/article/details/114782519