Skip to content

Can't install custom repository through bower.json #1113

Closed
kvervo opened this Issue Feb 12, 2014 · 1 comment

1 participant

@kvervo
kvervo commented Feb 12, 2014
bower --version
1.2.8

bower.json

{
    "name": "Project",
    "version": "0.0.1",
    "dependencies": {
        "requirejs": "~2.1.8",
        "app-engine": "git@git.example.com:app-engine.git#0.0.1"
    }
}

When trying to run bower install I get the following message.

bower app-engine#0.0.1            not-cached git@git.example.com:app-engine.git#0.0.1
bower app-engine#0.0.1               resolve git@git.example.com:app-engine.git#0.0.1
bower app-engine#0.0.1          ENORESTARGET No tag found that was able to satisfy 0.0.1

Additional error details:
No versions found in git@git.example.com:app-engine.git

Although running

bower install git@git.example.com:app-engine.git#0.0.1

install everything and outputs

bower git@git.example.com:app-engine.git#*          not-cached git@git.example.com:app-engine.git#*
bower git@git.example.com:app-engine.git#*          resolve git@git.example.com:app-engine.git#*
bower git@git.example.com:app-engine.git#*          checkout master
bower app-engine#*          resolved git@git.example.com:app-engine.git#35af013218
bower app-engine#*          install app-engine#35af013218

smart-core#35af013218 js/external/app-engine

If delete the # from bower.json, then everything works perfectly fine.
Although this is not the required behaviour, since we would like to install specific versions as dependencies.

How can we specify versions in bower.json for custom packages?

@kvervo
kvervo commented Feb 12, 2014

Sorry, my bad.

We forgot to run: git push origin --tags

@kvervo kvervo closed this Feb 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.