Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to generator icon #9

Open
0Vipin0 opened this issue Jan 5, 2021 · 5 comments
Open

Unable to generator icon #9

0Vipin0 opened this issue Jan 5, 2021 · 5 comments

Comments

@0Vipin0
Copy link

0Vipin0 commented Jan 5, 2021

I tried to create simple icons from svg but this error was given:

[email protected] install C:\Users\Vipin Malik\AppData\Roaming\Pub\Cache\global_packages\icon_font_generator\node_modules\ttf2woff2
(node-gyp rebuild > builderror.log) || (exit 0)

Is this issue related to the package side or my side?

@joffre
Copy link

joffre commented Mar 11, 2021

Hello,
I have the same problem. it doesn't go further...

[email protected] install D:\Dev\sdk\cache\pub\global_packages\icon_font_generator\node_modules\ttf2woff2
(node-gyp rebuild > builderror.log) || (exit 0)

On :
Dart SDK version: 2.10.4 (stable) (Wed Nov 11 13:35:58 2020 +0100) on "windows_x64"

@mzdm
Copy link

mzdm commented Mar 22, 2021

Had the same issue.

Make sure the file name of SVG files does not have dash(es): -

However, when I fixed it now it is stuck in an infinite loop...

@flakerimi
Copy link

Check node version, this is node error.

@joffre
Copy link

joffre commented Mar 25, 2021

The first thing I found out is that destination folders are not created by this package if they don't exist. You have to create them manually ... After that I was able to generate them under my linux OS.

@andreyp3054
Copy link

andreyp3054 commented Jun 14, 2024

To generate the icons, use the working command dart run icon_font_generator:generator.

ex.
dart run icon_font_generator:generator assets/svg/ fonts/my_icons_font.otf --output-class-file=lib/my_icons.dart -r

Refer to this pull request
#37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants