- πΊπΈUnited States BEGRAFX Laconia, New Hampshire
I'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.
- πΊπΈUnited States jsimonis
Has 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).
- π©πͺGermany D34dMan Hamburg
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).
could 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
- πΊπΈUnited States jsimonis
Got 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).
#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-extender
Now 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
{ "type": "composer", "url": "https://asset-packagist.org" },
In your "extra' section of composer, you need to allow npm packages:
"extra": {.....other configs "installer-types": [ "npm-asset" ] }
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
"web/libraries/{$name}": [ "type:drupal-library", "type:npm-asset", "vendor:npm-asset" ],
Finally running
composer require npm-asset/fonticonpicker--fonticonpicker
should 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#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-extender
Now 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
{ "type": "composer", "url": "https://asset-packagist.org" },
In your "extra' section of composer, you need to allow npm packages:
"extra": {.....other configs "installer-types": [ "npm-asset" ] }
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
"web/libraries/{$name}": [ "type:drupal-library", "type:npm-asset", "vendor:npm-asset" ],
Finally running
composer require npm-asset/fonticonpicker--fonticonpicker
should 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- Status changed to Needs review
5 months ago 7:18pm 23 July 2024 - π©πͺGermany D34dMan Hamburg
This 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:^3
- Status changed to Fixed
5 months ago 12:43pm 24 July 2024 - π©πͺGermany D34dMan Hamburg
After 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... π Cannot install on Drupal 10 with composer Fixed for report.
Automatically closed - issue fixed for 2 weeks with no activity.