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

前端 未结 4 777
伪装坚强ぢ
伪装坚强ぢ 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: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.

提交回复
热议问题