Writing a script to automatically install GTK is too complicated and I spent too much time on it, and you still have to install VS C++, etc. However, I found another solution, it's about optionalDependency in package.json, if it fails to install the package from there, then everything will work normally.
Writing a script to automatically install GTK is too complicated and I spent too much time on it, and you still have to install VS C++, etc. However, I found another solution, it's about
optionalDependency
in package.json, if it fails to install the package from there, then everything will work normally.https://docs.npmjs.com/cli/v10/configuring-npm/package-json#optionaldependencies