官术网_书友最值得收藏!

Time for action – installing Bower

Perform the following steps to install Bower:

  1. If you are using Windows, open the command prompt. If you are using OS X or Ubuntu, open the terminal.
  2. Run the following command:
    npm install -g bower
    

    Note

    If you are having trouble installing Bower in Ubuntu, run the command with sudo.

What just happened?

We have just installed Bower on the computer, which enables the bower command. The -g parameter that we included in the preceding command installs Bower globally, so that we are able to execute the bower command in any directory in the computer.

Bower commands

After installing Bower, we have access to a set of command lines to operate Bower functionalities. We will run these commands in the terminal, or in the command prompts if you are using Windows, just like we installed Bower with the npm command. All commands start with bower and are followed by the command keyword. The following is the list of commands that we may use frequently:

Note

You can run bower --help for the complete list of commands.

Pop quiz – web development tools and command lines

Q1. We have just installed Sublime Text along with Package Control. What is the Package Control used for?

  1. To install and remove the Sublime Text package easily.
  2. To install LESS and Sass/SCSS packages.
  3. To manage packages in Sublime Text.

Q2. We have also installed XAMPP. Why did we need to install XAMPP?

  1. To host the websites locally.
  2. To develop websites locally.
  3. To manage the project locally.
主站蜘蛛池模板: 习水县| 平邑县| 甘谷县| 石嘴山市| 清远市| 唐海县| 黑龙江省| 沁水县| 岳池县| 乐清市| 苍山县| 右玉县| 洛南县| 峡江县| 梧州市| 卢湾区| 金华市| 淮滨县| 平度市| 那曲县| 唐山市| 孟津县| 兴业县| 松滋市| 拉萨市| 普兰县| 东乌珠穆沁旗| 漳浦县| 景德镇市| 张家港市| 锦州市| 镇安县| 南京市| 昌吉市| 清丰县| 浑源县| 尉氏县| 天台县| 宜宾市| 肥东县| 津市市|