登录

javascript - 在bower.json中只有 bootstrap的信息并没又其依赖的jquery。

bower install bootstrap --save 时在bower.json中只有 bootstrap的信息并没又其依赖的jquery,但是jquey确实是安装了!请问这是怎么原因?

# Node.js
黄舟 黄舟 2469 天前 899 次浏览

全部回复(1) 我要回复

  • 巴扎黑

    巴扎黑2017-06-24 09:45:40

    bower.json 只保存你项目的依赖
    而jQuery是作为bootstrap的依赖安装的
    你的项目也无需添加jQuery的依赖,如无必要

    回复
    0
  • 取消 回复 发送