How to install Bootstrap v4 alpha using bower? [duplicate]

主宰稳场 提交于 2019-12-08 19:23:25

问题


The v4-alpha documentation states

Bootstrap v4.0.0-alpha is available for download in several ways, including some of your favorite package managers.

however, the mentioned

bower install bootstrap

installs the latest stable release 3.3.5 instead.

How to install v4 alpha using bower?


回答1:


To install a specific version, append the GitHub tag using #:

bower install bootstrap#4.0.0-alpha



回答2:


Adding "bootstrap": "4.0" to the bower.json file under dependencies and running bower install in the terminal did it for me. Naturally, if you're using Yeoman and opt-in for the Bootstrap option, you'll want to remove the bootstrap folder under the bower_components folder.



来源:https://stackoverflow.com/questions/33156310/how-to-install-bootstrap-v4-alpha-using-bower

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!