Tuesday, December 30, 2014

Bower install components in Windows

0) install bower
> npm install bower -g

1) for ssl issue
create .bowerrc file in the root.
add 
{
    "strict-ssl": false
}
> set GIT_SSL_NO_VERIFY=true

3) # for some location where git schema is forbidden.
> git config --global url."https://".insteadOf git://

4) > bower install

Example of bower.json
{
  "name": "Example",
  "version": "0.1.0",
  "authors": [
    "Rocky Niu <rockylearningcs@gmail.com>"
  ],
  "description": "Example",
  "license": "MIT",
  "private": false,
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components"
  ],
  "dependencies": {
    "jquery": "~2.1.3",
    "fontawesome": "~4.2.0",
    "jquery.ui": "~1.11.2",
    "bootstrap": "~3.3.1"
  }
}

No comments:

Post a Comment