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
How to install and use bower in windows 7
提问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。
2.Install Bower Globally - npm install -g bower
2.在全球安装 Bower - npm install -g bower
4.Create your Project Directory and cd
into the project directory just created.
4.创建您的项目目录并cd
进入刚刚创建的项目目录。
5.Initialize Git in your project - git init
5.在你的项目中初始化 Git - git init
6.Initialize your package.json
for NPM dependencies -
npm init
(Answer the questions that it asks)
6.初始化您package.json
的 NPM 依赖项 -
npm init
(回答它提出的问题)
7.Initialize your bower.json
for Bower dependencies - bower init
(Answer the questions that it asks)
7.初始化你bower.json
的鲍尔依赖 - bower init
(回答它提出的问题)