Closed (fixed)
Project:
Font Awesome Iconpicker
Version:
3.0.0-rc1
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2022 at 06:31 UTC
Updated:
7 Aug 2024 at 12:44 UTC
Jump to comment: Most recent
Comments
Comment #2
w01f commentedI can verify the same on my site. It works, but the status report error is still there.
Comment #3
SandStorm commentedI have the same issue. The module works, but the error appears on the status reports.
I have a custom libraries folder though. It is not located under sites ...
I did put a copy of the library in the exact location as instruction, no success
Comment #4
cbwiedel commentedRunning the command: `composer require npm-asset/fonticonpicker--fonticonpicker` worked for me
Comment #5
begrafx commentedI'm getting the same message. I've installed the library, but still get the message.
Something I notice, the profile page says in part:
Please download the library from the above location and put it in libraries folder. After that unzip and rename the folder to 'fontawesome-iconpicker' (i.e. remove the version suffix). After you do it, the fontawesome-iconpicker.js file should be available at /sites/all/libraries/fontawesome-iconpicker/dist/js/fontawesome-iconpicker.js.I'm presuming that this is a D7 reference (and should probably be updated, or appropriately notated); and that root/libraries/fontawesome-iconpicker/dist/js/fontawesome-iconpicker.js is the correct path for a Drupal 10 install.
Comment #6
jsimonis commentedHas anyone gotten this working? I tried the composer code listed above, but got:
Could not find a matching version of package npm-asset/fonticonpicker--fonticonpicker. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (stable).
Comment #7
d34dman commentedcould you please try to change
"minimum-stability": "stable",to"minimum-stability": "dev",in your composer.json and try again?To know more about minimum-stability and its implication, please check out documentation on https://getcomposer.org/doc/04-schema.md#minimum-stability
Comment #8
jsimonis commentedGot this:
Could not find a matching version of package npm-asset/fonticonpicker--fonticonpicker. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (dev).
Comment #10
daveban commented#4 worked for me.
For people getting npm errors like "Could not find a matching version of package npm-asset/fonticonpicker--fonticonpicker", you might need to tell your composer file where to look for npm packages, and where to install them.
If so, first you need the oomphinc/composer-installers-extender plugin for composer, this allows any package to be installed to a directory other than the default vendor.
composer require -W --ignore-platform-reqs oomphinc/composer-installers-extenderNow we have to make some changes to composer.json to tell it where to look for these packages and what to do with them.
Under the 'repositories' section near the top, we add packagist.org as a code repo
In your "extra' section of composer, you need to allow npm packages:
Also in the 'extra' section, you need to tell composer where to install the npm packages, in this case in the libraries folder, by adding npm-asset as a type and vendor to the "web/libraries/{$name}" block
Finally running
composer require npm-asset/fonticonpicker--fonticonpickershould add the library to your composer files. On my site this created a 'fonticonpicker--fonticonpicker' folder in the libraries directory, and the site error about missing library went away
Comment #11
gwanjama commented#10 worked for me...thanks daveban
Comment #12
d34dman commentedComment #13
d34dman commentedThis should be fixed.
Instead of relying on composer to manage 3rd party library beyond our control, added dependency to https://packagist.org/packages/d34dman/vanilla-icon-picker to resolve the issue without much composer hackery. Please test and let me know if this works for you.
Try,
composer require drupal/fontawesome_iconpicker:^3Comment #14
d34dman commentedFixed in version 3.0.0-alpha5
Comment #15
d34dman commentedAfter a much await, we have a working composer installation (fix in 3.x-dev, 3.0.0-rc1)
Marking this as fixed.
Check https://www.drupal.org/project/fontawesome_iconpicker/issues/3359673#com... for report.