electron-vue使用 electron-builder打包时出现下面这个错误
Exit code: 2. Command failed: /usr/bin/perl /private/var/folders/07/1h8gf9w14c10w6djmvkd912h0000gn/T/t-i42abh/1-dmgProperties.pl
Can't locate Mac/Memory.pm in @INC (you may need to install the Mac::Memory module) (@INC contains: /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.4 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /private/var/folders/07/1h8gf9w14c10w6djmvkd912h0000gn/T/t-i42abh/1-dmgProperties.pl line 4.
BEGIN failed--compilation aborted at /private/var/folders/07/1h8gf9w14c10w6djmvkd912h0000gn/T/t-i42abh/1-dmgProperties.pl line 4.
Can't locate Mac/Memory.pm in @INC (you may need to install the Mac::Memory module) (@INC contains: /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.4 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /private/var/folders/07/1h8gf9w14c10w6djmvkd912h0000gn/T/t-i42abh/1-dmgProperties.pl line 4.
BEGIN failed--compilation aborted at /private/var/folders/07/1h8gf9w14c10w6djmvkd912h0000gn/T/t-i42abh/1-dmgProperties.pl line 4.
我刚开始使用的是npm install安装依赖,npm run build打包。后来改成了yarn安装依赖,然后用yarn run build的打包,就不会报错了。