How to install Bootstrap v4 alpha using bower? [du

2019-06-17 08:39发布

This question already has an answer here:

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?

2条回答
三岁会撩人
2楼-- · 2019-06-17 09:41

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

bower install bootstrap#4.0.0-alpha
查看更多
SAY GOODBYE
3楼-- · 2019-06-17 09:42

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.

查看更多
登录 后发表回答