简体   繁体   中英

How can i update ngx-bootstrap in my angular project

我正在使用角度版本的@angular/cli":"~8.3.25 and ngx-bootstrap":"^5.3.2",现在我想将我的 ngx-bootstrap 版本更新为 ngx-bootstrap":"^8.0 .0" 那么在不影响所有功能的情况下,将 ngx-bootstrap 版本更新为现有 Angular 项目中的最新版本的方法是什么。

you can try this

ng update ngx-bootstrap

but I'm not sure that nothing will break, probably it will be necessary to manually update the components if there are breaking changes

One can install specific version of a package by

npm i package_name@version

In your case it will be

npm i ngx-bootstrap@8.0.0 --save

--save flag register package to your package.json dependencies.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM