git 如何在 Windows 7 中安装和使用 Bower

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/35879113/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 11:50:52  来源:igfitidea点击:

How to install and use bower in windows 7

node.jsgitbowerbower-installnpm-install

提问by Muhammad

I'm a beginner in using bower and had searched all over the internet for installing the bower but couldn't find step by step method for installing the bower. If you please help me for this I shall be very thankful to everyone.

我是一个使用 bower 的初学者,在互联网上搜索过安装 bower,但找不到安装 bower 的分步方法。如果您对此有所帮助,我将非常感谢大家。

回答by SeanKelleyx

First you need to install node.js which you can do here: https://nodejs.org/en/download/. Once you have node installed you need to open a command prompt window. To install bower you enter the command npm install -g bower

首先,您需要安装 node.js,您可以在此处执行此操作:https: //nodejs.org/en/download/。安装节点后,您需要打开命令提示符窗口。要安装 bower,请输入命令npm install -g bower

回答by peteb

Follow the steps below to get Node/NPM, Bower & Git up and running for a new project.

按照以下步骤为新项目启动并运行 Node/NPM、Bower 和 Git。

1.Download & Install Node.js

1.下载并安装 Node.js

2.Install Bower Globally - npm install -g bower

2.在全球安装 Bower - npm install -g bower

3.Download & Install Git

3.下载并安装 Git

4.Create your Project Directory and cdinto the project directory just created.

4.创建您的项目目录并cd进入刚刚创建的项目目录。

5.Initialize Git in your project - git init

5.在你的项目中初始化 Git - git init

6.Initialize your package.jsonfor NPM dependencies - npm init(Answer the questions that it asks)

6.初始化您package.json的 NPM 依赖项 - npm init(回答它提出的问题)

7.Initialize your bower.jsonfor Bower dependencies - bower init(Answer the questions that it asks)

7.初始化你bower.json的鲍尔依赖 - bower init(回答它提出的问题)

package.json & bower.json Docs

package.json 和 bower.json 文档

NPM package.jsonDocs
Bower bower.jsonDocs

NPMpackage.json文档
Bowerbower.json文档