reactjs - 这是什么警告,我该如何解决?
问题描述
当我尝试配置我的 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>
我怎样才能解决这个问题?
解决方案
如果它不是许可项目,您可能可以使用 - { "license": "UNLICENSED" }
推荐阅读
- html - 垂直对齐三个段落
- c++ - 努力在方法中使用对象数组
- r - 包开发中的@importFrom 或 package::function
- php - 我如何使用 TinyMCE 编辑器通过 Ajax 加载/填充文本区域内容
- python-3.x - 原始 PCM 的 FFT 图因 python 中的更高频率而出错
- c - 关于hackerrank的数组操作问题
- java - 嵌套对象结构内字段的 HibernateValidator 约束映射
- php - 如何根据文件名前面的字母显示按钮?
- javascript - React Hooks Modal 传递状态?
- github - 如何在 GitHub 中配置主分支以仅接受来自特定分支的拉取请求