我无法安装simle-react-dropdown

时间:2018-04-24 08:01:27

标签: reactjs npm

我正在尝试通过在项目目录中的GitBash中键入以下命令来安装react-simple-dropdown: npm i react-simple-dropdown

当我跑步时,我得到以下错误:

$ npm i react-simple-dropdown
lease-tracker@0.1.0 C:\Lease_Tracker
+-- UNMET PEER DEPENDENCY react@16.2.0
+-- UNMET PEER DEPENDENCY react-dom@16.2.0
`-- react-simple-dropdown@3.2.0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.3 (node_modules\react-scripts\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN react-simple-dropdown@3.2.0 requires a peer of react@0.14.x || 15.x but none was installed.
npm WARN react-simple-dropdown@3.2.0 requires a peer of react-dom@0.14.x || 15.x but none was installed.
npm WARN simple-react-dropdown@3.3.0 requires a peer of react@^15.3.1 but none was installed.
npm WARN simple-react-dropdown@3.3.0 requires a peer of react-dom@^15.3.1 but none was installed.

你能帮我解决这个问题吗?

谢谢, 埃米尔·科巴斯利奇

1 个答案:

答案 0 :(得分:3)

这些只是警告而不是错误。