npm 安装出现 UNMET DEPENDENCY 的解决方案

npm i
muzhicloud@0.2.2 E:commuzhicloud_make_web
+-- UNMET PEER DEPENDENCY react@15.4.2
+-- react-dnd@2.3.0
| +-- disposables@1.0.1
| `-- dnd-core@2.3.0
`-- UNMET PEER DEPENDENCY react-dom@15.4.2

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.1
npm WARN react-soundplayer@0.3.6 requires a peer of react@^0.14.x but none was installed.
npm WARN react-soundplayer@0.3.6 requires a peer of react-dom@^0.14.x but none was installed.

出现这个的时候,不要重新安装,只是提示我们当前不是最新版本,可以升级到最新版,之前老是踩坑,下次一定记住。

原文地址:https://www.cnblogs.com/liuna/p/6428579.html