Electron-builder macパッケージエラーCan not locate Mac Memory.pm in @INC you may need to install the Mac:Memor


Electron-vueが構築したプロジェクトはmacパッケージ時に失敗し、具体的なエラー情報は以下の通りです.
OKAY  take it away `electron-builder`

  • electron-builder version=20.44.4
  • loaded configuration file=package.json ("build" field)
  • writing effective config file=build/builder-effective-config.yaml
  • no native production dependencies
  • packaging       platform=darwin arch=x64 electron=7.0.0 appOutDir=build/mac
  • signing         file=build/mac/ .app identityName=Developer ID Application: SuzhouNetworks Co.,Ltd. (W788888X2M) identityHash=3F06988888888888888869BAAABFFF116 provisioningProfile=none
  • building        target=macOS zip arch=x64 file=build/ -1.2.58-mac.zip
  • building        target=DMG arch=x64 file=build/ -1.2.58.dmg
  • building embedded block map file=build/ -1.2.58-mac.zip
Error: Exit code: 2. Command failed: /usr/bin/perl /private/var/folders/2j/xhy537wj5731y95lftfkk1fm0000gn/T/t-CSuyNQ/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/2j/xhy537wj5731y95lftfkk1fm0000gn/T/t-CSuyNQ/1-dmgProperties.pl line 4.
BEGIN failed--compilation aborted at /private/var/folders/2j/xhy537wj5731y95lftfkk1fm0000gn/T/t-CSuyNQ/1-dmgProperties.pl line 4.

現在electron-builderバージョンを使用しています:20.44.4、新しいバージョン「electron-builder」:「^22.70」をダウンロードし、解決します.