How to resolve bower issue: “ENORESTARGET Tag/branch master does not exist”

前端 未结 4 742
伪装坚强ぢ
伪装坚强ぢ 2021-01-11 19:34

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 c

相关标签:
4条回答
  • 2021-01-11 20:08

    This happened to me from within a Jenkins build, and wiping out the workspace did the trick for me.

    0 讨论(0)
  • 2021-01-11 20:09

    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)

    0 讨论(0)
  • 2021-01-11 20:19

    I had the same problem, and removed the git files as suggested in a previous answer.

    NG.

    Then I removed bower.json. That fixed the problem.

    Fortunately I work in a VM environment and fortunately I took a snapshot before I started deleting stuff (highly recommended practice). So I restored the snapshot and applied the right fix:

      rm bower.json
      bower init
    

    bower init asks a bunch of questions. I pretty much took the defaults. It restored my bower.json dependencies based on what I had already installed in bower_components

    Voila!

    My unloadable package now loads.

    0 讨论(0)
  • 2021-01-11 20:22

    Be careful ! it can be your command line tool that causes this problem. For me the problem was resolved using ConEmu and the bug was caused by a version of Cmder

    0 讨论(0)
提交回复
热议问题