Version and Environment:
node 14x
electron 12x
Copy the code
Error content:
Error: Exit code: 2. Command failed: /usr/bin/perl /private/tmp/t-FrZMPQ/1-dmgProperties.pl Can't locate Mac/Finder/DSStore.pm in @INC (you may need to install the Mac::Finder::DSStore module) (@INC contains: / Library/Perl / 5.30 / Darwin - thread - multi - level 2 / Library/Perl / 5.30 / Network/Library/Perl / 5.30 / Darwin - thread - multi - level 2 / Network/Library/Perl / 5.30 / Library/Perl/Updates / 5.30.2 / System/Library/Perl / 5.30 / Darwin - thread - multi - level 2 / System/Library/Perl / 5.30 / System/Library/Perl/Extras / 5.30 / Darwin - thread - multi - level 2 / System/Library/Perl/Extras / 5.30) at /private/tmp/t-FrZMPQ/1-dmgProperties.pl line 3. BEGIN failed--compilation aborted at /private/tmp/t-FrZMPQ/1-dmgProperties.pl line 3.Copy the code
Solution: Uninstall the electron- Builder to reinstall.
Successful version: electron- Builder “: “^22.11.7