electron-font-manager
electron-font-manager copied to clipboard
Is there any additional requirements for setting up on M1 Mac?
Hello. I got this error.
../node_modules/electron-font-manager/build/Release/font_manager.node
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
Environment
- M1 Mac
- version 12.5
- node version v16.4.0
const { getAvailableFonts } = require("electron-font-manager");
const fonts = getAvailableFonts();
console.log("fonts", fonts);
I'm trying to use this library for my electron project. But it is not working because of that error. Thank you.