这是什么警告,我该如何解决?

时间:2021-04-05 14:44:48

标签: reactjs bootstrap-4 frontend

当我尝试配置 React 应用程序并在命令提示符中键入 yarn add bootstrap@4.0.0 时,会出现以下警告。

C:\Users\Administrator\Desktop\React\confusion>yarn add bootstrap@4.0.0
yarn add v1.22.10
warning ..\..\..\..\package.json: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@2.3.2: The platform "win32" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @testing-library/user-event@12.8.3" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.20.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning " > bootstrap@4.0.0" has unmet peer dependency "jquery@1.9.1 - 3".
warning " > bootstrap@4.0.0" has unmet peer dependency "popper.js@^1.12.9".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ bootstrap@4.0.0
info All dependencies
└─ bootstrap@4.0.0
Done in 32.72s.

C:\Users\Administrator\Desktop\React\confusion>

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

如果它不是许可项目,您可能可以使用 - {“许可证”:“未授权”}