【发布时间】:2018-08-14 09:00:56
【问题描述】:
我希望使用 ng-bootstrap。
文档要求安装 bootstrap CSS 作为依赖项,但不包括 jQuery
如果我使用 npm 安装引导程序,我会收到警告说它需要 jquery 和 popper。
$ npm i -S bootstrap
npm WARN bootstrap@4.1.3 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.1.3 requires a peer of popper.js@^1.14.3 but none is installed. You must install peer dependencies yourself.
有没有办法在我的项目中安装引导 css 而不会添加不需要的对等依赖项?
【问题讨论】: