正在将 Angular 应用程序升级到 Bootstrap 4.0.0
Upgrading Angular application to Bootstrap 4.0.0
如何将我现有的 angular 应用程序升级到 Bootstrap 版本 4.0.0。
我知道这很容易,但我正在寻找适当的升级过程,而不会遇到很多问题,因为我可以看到 Bootstrap 4.0.0 稳定版错误的许多堆栈溢出。
谢谢,
我的看法是:
- 删除 node_modules 文件夹(以防万一)
- 从 package.jsons
中删除 bootstrap 个条目
npm i bootstrap
安装 bootstrap4
- 通过 offical guide 安装 ng-bootstrap:
npm install --save @ng-bootstrap/ng-bootstrap
如果您使用纱线
yarn upgrade bootstrap@latest
npm update --save @ng-bootstrap/ng-bootstrap
这会将您当前的 bootstrap 软件包更新到最新版本。然后 运行
npm audit fix
如何将我现有的 angular 应用程序升级到 Bootstrap 版本 4.0.0。
我知道这很容易,但我正在寻找适当的升级过程,而不会遇到很多问题,因为我可以看到 Bootstrap 4.0.0 稳定版错误的许多堆栈溢出。
谢谢,
我的看法是:
- 删除 node_modules 文件夹(以防万一)
- 从 package.jsons 中删除 bootstrap 个条目
npm i bootstrap
安装 bootstrap4- 通过 offical guide 安装 ng-bootstrap:
npm install --save @ng-bootstrap/ng-bootstrap
如果您使用纱线
yarn upgrade bootstrap@latest
npm update --save @ng-bootstrap/ng-bootstrap
这会将您当前的 bootstrap 软件包更新到最新版本。然后 运行
npm audit fix