Include angular-Material Dependency Bower

十年热恋 提交于 2019-12-11 23:09:14

问题


In CMD ,following command works fine.

bower install angular-material

I am trying to include angular-material dependency in bower.json.I added following line in json file.

 "angular-material": "~0.11.1",

But this is not working .I am not able to figure it out how to proceed.


回答1:


To save the dependecy to the bower.json file you need to add --save.

Try this

bower install angular-material --save

--EDIT--

The error message is clear. You don't have git installed.

Bower needs the following to work-

  1. node
  2. npm
  3. git

Verify if you have all these 3 installed like so...

  • node -v
  • npm -v
  • git --version

You can get more info here




回答2:


I used following command which updates bower.json file automatically.

bower install bootstrap --save



来源:https://stackoverflow.com/questions/32809011/include-angular-material-dependency-bower

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