aspnet / LibraryManager

MIT License
457 stars 80 forks source link

"libman.json@1.10.0" library could not be resolved #721

Closed VahidN closed 10 months ago

VahidN commented 11 months ago

After running the libman restore command, I'm getting this error message

[LIB002]: The "libman.json@1.10.0" library could not be resolved by the "jsdelivr" provider

I'm using the 2.1.175+29a28921bd.RR version.

jimmylewis commented 10 months ago

What package are you expecting to find? I don't find a "libman.json" package searching in jsdelivr or in npm (which is what jsdelivr mirrors)

VahidN commented 10 months ago

I'm looking for bootstrap and bootstrap-icons.

jimmylewis commented 10 months ago

So your libman.json file should look something like this:

{
  "version": "1.0",
  "defaultProvider": "jsdelivr",
  "libraries": [
    {
      "library": "bootstrap@5.3.2",
      "destination": "wwwroot/lib/bootstrap"
    },
    {
      "library": "bootstrap-icons@1.11.1",
      "destination": "wwwroot/lib/bootstrap-icons"
    }
  ]
}

Is that similar to what you had? Or what did yours look like when you got this error?

VahidN commented 10 months ago

Yes, exactly. It's the same and i tried different defaultProviders as well. libman

jimmylewis commented 10 months ago

Weird, I can't reproduce this with either the libman CLI tool or with Visual Studio. Can you share the contents of you libman.json file? I noticed in the Fiddler screenshot that it's using unpkg instead of jsdelivr as in the original error, so I just wanted to double check everything...

VahidN commented 10 months ago

I'm very sorry. That was my fault.