问题
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-
- node
- npm
- 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