Yeoman and Bower not adding Bootstrap CSS (AngularJS generator)

后端 未结 5 1287
半阙折子戏
半阙折子戏 2020-12-24 02:15

I am following along a codelab on the Yeoman webpage, and so far I\'ve managed to follow along (with a few major hiccups getting my development environment going, but now it

5条回答
  •  死守一世寂寞
    2020-12-24 03:00

    In the bower.json file, the dependency version of Bootstrap is set as:

    "bootstrap": "^3.2.0",
    

    By default, that means install the latest version higher than 3.2.0. As a result, the latest version 3.3.5 is installed and that breaks.

    So, remove the ^ sign and replace:

    "bootstrap": "^3.2.0",
    

    with:

    "bootstrap": "3.3.4",
    

提交回复
热议问题