Skip to content

bower dependency not targeting well #101

@jordicallupe

Description

@jordicallupe

Problem:
When I'm trying to install bower dependencies it throws me ENORESTARGET:

bower angular-perfect-scrollbar#^0.2.1              extract archive.tar.gz
bower angular-perfect-scrollbar#^0.2.1             mismatch Version declared in the json (0.1.0) is different than the resolved one (0.2.1)
bower angular-perfect-scrollbar#^0.2.1             resolved https://github.com/itsdrewmiller/angular-perfect-scrollbar.git#0.2.1
bower utatti-perfect-scrollbar#1.3.x             not-cached https://github.com/utatti/perfect-scrollbar.git#1.3.x
bower utatti-perfect-scrollbar#1.3.x                resolve https://github.com/utatti/perfect-scrollbar.git#1.3.x
bower utatti-perfect-scrollbar#1.3.x           ENORESTARGET No tag found that was able to satisfy 1.3.x

Additional error details:
Available versions in https://github.com/utatti/perfect-scrollbar.git: 1.0.0-alpha9, 1.0.0-alpha8, 1.0.0-alpha7, 1.0.0-alpha6, 1.0.0-alpha5, 1.0.0-alpha4, 1.0.0-alpha3, 1.0.0-alpha2, 1.0.0-alpha12, 1.0.0-alpha11, 1.0.0-alpha10

It seems utatti-perfect-scrollbar dependency redirects to https://github.com/mdbootstrap/Tailwind-Elements and tag 1.3.x does not exist.
Solution:
I just forked your repo branch main and modified bower.json to functional way
https://github.com/itsdrewmiller/angular-perfect-scrollbar/blob/master/bower.json

{
  "name": "angular-perfect-scrollbar",
  "version": "0.1.0",
  "description": "A directive to allow the use of Perfect Scrollbar in AngularJS",
  "main": "src/angular-perfect-scrollbar.js",
  "keywords": [
    "angular",
    "perfect",
    "scrollbar"
  ],
  "dependencies": {
    "angular": "*",
    "utatti-perfect-scrollbar": "1.3.x"
  },
  "authors": [
    "Drew Miller",
    "Clint Buhs"
  ],
  "license": "MIT",
  "homepage": "https://github.com/itsdrewmiller/angular-perfect-scrollbar",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ]
}

https://github.com/jordicallupe/angular-perfect-scrollbar/blob/master/bower.json

{
  "name": "angular-perfect-scrollbar",
  "version": "0.1.0",
  "description": "A directive to allow the use of Perfect Scrollbar in AngularJS",
  "main": "src/angular-perfect-scrollbar.js",
  "keywords": [
    "angular",
    "perfect",
    "scrollbar"
  ],
  "dependencies": {
    "angular": "*",
    "perfect-scrollbar": "https://github.com/mdbootstrap/perfect-scrollbar.git#1.3.x"
  },
  "authors": [
    "Drew Miller",
    "Clint Buhs"
  ],
  "license": "MIT",
  "homepage": "https://github.com/itsdrewmiller/angular-perfect-scrollbar",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ]
}

Could you change it for not doing this or arrive to a better solution?
Thanks,
Jordi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions