在目录windows 7上安装polymer时出错
当我试图在Windows7上的目录中安装polymer时,出现了一个错误。我已经安装了NodeJS和bower。当我通过命令提示符进入目录并运行Polymer install命令时,它会抛出以下错误:“GIT未安装或不在路径中。“bower ENOGIT GIT未安装”。我安装了GIT,并将目录添加为存储库 谢谢,在目录windows 7上安装polymer时出错,windows,node.js,git,bower,polymer,Windows,Node.js,Git,Bower,Polymer,当我试图在Windows7上的目录中安装polymer时,出现了一个错误。我已经安装了NodeJS和bower。当我通过命令提示符进入目录并运行Polymer install命令时,它会抛出以下错误:“GIT未安装或不在路径中。“bower ENOGIT GIT未安装”。我安装了GIT,并将目录添加为存储库 谢谢, Sam我的第一个想法是,您没有将git作为%PATH%变量 据我所知,bower所做的一切都是试图从github获取所需的东西,这意味着bower会在bower_components
Sam我的第一个想法是,您没有将git作为%PATH%变量 据我所知,bower所做的一切都是试图从github获取所需的东西,这意味着bower会在bower_components目录中为您克隆项目,而不会进一步搜索给定的错误(“bower ENOGIT git未安装”)我想说,正如我已经提到的那样,您的%PATH%变量中缺少git。您可以通过打开cmd并在其中键入“git”来轻松测试这一点。预期结果应该类似于:
$ git
usage: git [--version] [--help] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
The most commonly used git commands are:
add Add file contents to the index
bisect Find by binary search the change that introduced a bug
branch List, create, or delete branches
checkout Checkout a branch or paths to the working tree
clone Clone a repository into a new directory
commit Record changes to the repository
diff Show changes between commits, commit and working tree, etc
fetch Download objects and refs from another repository
grep Print lines matching a pattern
init Create an empty Git repository or reinitialize an existing one
log Show commit logs
merge Join two or more development histories together
mv Move or rename a file, a directory, or a symlink
pull Fetch from and integrate with another repository or a local branch
push Update remote refs along with associated objects
rebase Forward-port local commits to the updated upstream head
reset Reset current HEAD to the specified state
rm Remove files from the working tree and from the index
show Show various types of objects
status Show the working tree status
tag Create, list, delete or verify a tag object signed with GPG
'git help -a' and 'git help -g' lists available subcommands and some
concept guides. See 'git help <command>' or 'git help <concept>'
to read about a specific subcommand or concept.
$git
用法:git[--version][--help][-c name=value]
[--exec path[=][--html path][--man path][--info path]
[-p |--paginate |--无寻呼机][--无替换对象][--bare]
[--git dir=][--work tree=][--namespace=]
[]
最常用的git命令有:
将文件内容添加到索引
对分通过二进制搜索查找引入错误的更改
分支列表、创建或删除分支
签出到工作树的分支或路径
将存储库克隆到新目录中
将记录更改提交到存储库
差异显示提交、提交和工作树等之间的更改
从另一个存储库获取下载对象和引用
grep打印与图案匹配的线条
init创建一个空的Git存储库或重新初始化现有的Git存储库
日志显示提交日志
合并将两个或多个开发历史记录合并在一起
mv移动或重命名文件、目录或符号链接
从另一个存储库或本地分支提取并与之集成
将更新远程参照与关联对象一起推送
对更新的上游水头重新设定转发端口本地提交的基础
将当前磁头重置为指定状态
rm从工作树和索引中删除文件
显示各种类型的对象
状态显示工作树的状态
标记创建、列出、删除或验证使用GPG签名的标记对象
“git help-a”和“git help-g”列出了可用的子命令和一些
概念指南。请参阅“git帮助”或“git帮助”
阅读有关特定子命令或概念的信息。
我希望这个答案至少对您有一点帮助我的第一个想法是,您没有将git作为%PATH%变量 据我所知,bower所做的一切都是试图从github获取所需的东西,这意味着bower会在bower_components目录中为您克隆项目,而不会进一步搜索给定的错误(“bower ENOGIT git未安装”)我想说,正如我已经提到的那样,您的%PATH%变量中缺少git。您可以通过打开cmd并在其中键入“git”来轻松测试这一点。预期结果应该类似于:
$ git
usage: git [--version] [--help] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
The most commonly used git commands are:
add Add file contents to the index
bisect Find by binary search the change that introduced a bug
branch List, create, or delete branches
checkout Checkout a branch or paths to the working tree
clone Clone a repository into a new directory
commit Record changes to the repository
diff Show changes between commits, commit and working tree, etc
fetch Download objects and refs from another repository
grep Print lines matching a pattern
init Create an empty Git repository or reinitialize an existing one
log Show commit logs
merge Join two or more development histories together
mv Move or rename a file, a directory, or a symlink
pull Fetch from and integrate with another repository or a local branch
push Update remote refs along with associated objects
rebase Forward-port local commits to the updated upstream head
reset Reset current HEAD to the specified state
rm Remove files from the working tree and from the index
show Show various types of objects
status Show the working tree status
tag Create, list, delete or verify a tag object signed with GPG
'git help -a' and 'git help -g' lists available subcommands and some
concept guides. See 'git help <command>' or 'git help <concept>'
to read about a specific subcommand or concept.
$git
用法:git[--version][--help][-c name=value]
[--exec path[=][--html path][--man path][--info path]
[-p |--paginate |--无寻呼机][--无替换对象][--bare]
[--git dir=][--work tree=][--namespace=]
[]
最常用的git命令有:
将文件内容添加到索引
对分通过二进制搜索查找引入错误的更改
分支列表、创建或删除分支
签出到工作树的分支或路径
将存储库克隆到新目录中
将记录更改提交到存储库
差异显示提交、提交和工作树等之间的更改
从另一个存储库获取下载对象和引用
grep打印与图案匹配的线条
init创建一个空的Git存储库或重新初始化现有的Git存储库
日志显示提交日志
合并将两个或多个开发历史记录合并在一起
mv移动或重命名文件、目录或符号链接
从另一个存储库或本地分支提取并与之集成
将更新远程参照与关联对象一起推送
对更新的上游水头重新设定转发端口本地提交的基础
将当前磁头重置为指定状态
rm从工作树和索引中删除文件
显示各种类型的对象
状态显示工作树的状态
标记创建、列出、删除或验证使用GPG签名的标记对象
“git help-a”和“git help-g”列出了可用的子命令和一些
概念指南。请参阅“git帮助”或“git帮助”
阅读有关特定子命令或概念的信息。
我希望这个答案至少对您有一点帮助我的第一个想法是,您没有将git作为%PATH%变量 据我所知,bower所做的一切都是试图从github获取所需的东西,这意味着bower会在bower_components目录中为您克隆项目,而不会进一步搜索给定的错误(“bower ENOGIT git未安装”)我想说,正如我已经提到的那样,您的%PATH%变量中缺少git。您可以通过打开cmd并在其中键入“git”来轻松测试这一点。预期结果应该类似于:
$ git
usage: git [--version] [--help] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
The most commonly used git commands are:
add Add file contents to the index
bisect Find by binary search the change that introduced a bug
branch List, create, or delete branches
checkout Checkout a branch or paths to the working tree
clone Clone a repository into a new directory
commit Record changes to the repository
diff Show changes between commits, commit and working tree, etc
fetch Download objects and refs from another repository
grep Print lines matching a pattern
init Create an empty Git repository or reinitialize an existing one
log Show commit logs
merge Join two or more development histories together
mv Move or rename a file, a directory, or a symlink
pull Fetch from and integrate with another repository or a local branch
push Update remote refs along with associated objects
rebase Forward-port local commits to the updated upstream head
reset Reset current HEAD to the specified state
rm Remove files from the working tree and from the index
show Show various types of objects
status Show the working tree status
tag Create, list, delete or verify a tag object signed with GPG
'git help -a' and 'git help -g' lists available subcommands and some
concept guides. See 'git help <command>' or 'git help <concept>'
to read about a specific subcommand or concept.
$git
用法:git[--version][--help][-c name=value]
[--exec path[=][--html path][--man path][--info path]
[-p |--paginate |--无寻呼机][--无替换对象][--bare]
[--git dir=][--work tree=][--namespace=]
[]
最常用的git命令有:
将文件内容添加到索引
用二进制s求二等分