如何解决凉亭问题:“ ENORESTARGET标签/分支母版不存在” [英] How to resolve bower issue: "ENORESTARGET Tag/branch master does not exist"

查看:122
本文介绍了如何解决凉亭问题:“ ENORESTARGET标签/分支母版不存在”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法让Bower参与当前的项目。
该项目几周前从一个eoman的 angular应用程序开始,现在已经不记得我做了什么了,也无法确定如何解决它。


我愿意没有 bower_components 目录,并且已删除并重新创建了 bower.js 多次。


bower.json

  { 
名称: my_name,
版本: 0.0.0&,
主要: app / index.html,
许可证: MIT,
私有:真实
}

$ Bower install jquery

  bower jquery#*缓存git://github.com/jquery/jquery.git#2.1.1 
bower jquery#*针对git://github.com/jquery/jquery.git#*
验证2.1.1 bower jquery#* ENORESTARGET标签/分支主体不存在

其他错误详细信息:
没有标签fou在git://github.com/jquery/jquery.git
中找到git://github.com/jquery/jquery.git

它看起来像 这个错误告诉我jquery项目没有master分支? (确实如此


我创建了一个新项目,并进行了 bower初始化,然后运行了相同的命令( bower install jquery )。

$ bower install jquery

$ bower install jquery p>

  bower jquery#*缓存git://github.com/jquery/jquery.git#2.1.1 
bower jquery#* validate 2.1 .1针对git://github.com/jquery/jquery.git#*
bower jquery#〜2.1.1安装jquery#2.1.1

jquery#2.1.1 bower_components / jQuery

still 无法使我的原始项目正常工作。


什么是导致此问题的原因,并且该如何解决?




UPDATE


我能够通过删除所有隐藏的 .git * 文件来解决此问题。



  • .git /
  • 的内容
  • .gitignore

  • .gitattributes


我想是这样的某种程度上git错误地缓存了某些东西?我真的很想知道是什么原因导致它无法正常工作。如果有人对所有问题的原因有任何见解,我将稍作讨论。否则,我稍后会回答...

解决方案

如果您使用cmder或ConEmu(都是简单的终端命令程序)转到选项,然后取消选中注入ConEmuHk选项,您的问题将得到解决...!



更多信息:主要答复(在最后一个答案附近)


I cannot seem to get bower working on my current project. The project began as a yeoman 'angular' app a couple weeks ago, and now cannot remember exactly what I did, nor can I determine how to fix it.

I do not have a bower_components directory, and have deleted and re-created bower.js several times.

bower.json

{
  "name": "my_name",
  "version": "0.0.0",
  "main": "app/index.html",
  "license": "MIT",
  "private": true
}

$ bower install jquery

bower jquery#*                  cached git://github.com/jquery/jquery.git#2.1.1
bower jquery#*                validate 2.1.1 against git://github.com/jquery/jquery.git#*
bower jquery#*            ENORESTARGET Tag/branch master does not exist

Additional error details:
No tags found in git://github.com/jquery/jquery.git
No branches found in git://github.com/jquery/jquery.git

It looks like this error is telling me that the jquery project doesn't have a master branch? (it does)

I created a fresh project, and did a bower init, then ran the same command (bower install jquery). Doing this works as expected, and jquery is installed without error.

$ bower install jquery

bower jquery#*                  cached git://github.com/jquery/jquery.git#2.1.1
bower jquery#*                validate 2.1.1 against git://github.com/jquery/jquery.git#*
bower jquery#~2.1.1            install jquery#2.1.1

jquery#2.1.1 bower_components/jquery

I still cannot get my original project to work.

What is it that is causing this problem, and how can I resolve it?


UPDATE

I was able to resolve this issue by deleting all the hidden .git* files.

  • contents of .git/
  • .gitignore
  • .gitattributes

I guess it follows that somehow git was caching something incorrectly? I'd really like to know what it was causing it to not work properly. I'll leave this question open for a bit in case someone has any insight as to what the cause of all this is. Otherwise I'll answer myself a bit later on...

解决方案

if you use cmder or ConEmu (both are simple terminal commander) go to options and uncheck "Inject ConEmuHk" option, your problem will be resolve ...!

more info : main response(in near of last answer)

这篇关于如何解决凉亭问题:“ ENORESTARGET标签/分支母版不存在”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆