在想 make 并发布软件版本的时候,现出这个错误:
❯ Making distributables✖ Making a dmg distributable for darwin/arm64› Cannot find module 'macos-alias'Require stack:- /Users/kyle/github/wubi-dict-editor/node_modules/ds-store/index.js

因为之前在安装 electron 环境的时候没有安装完全,而没有安装完全的原因是系统中没有苹果的 Command Line Tools。
Command Line Tools下载地址:
https://developer.apple.com/download/all/
node_modules 目录进入你的项目目录,清空你的 node_modules 目录,我们需要重新装一下开发环境,它这个里面缺了一点东西。
有没有安装第一步的 Command Line Tools 的时候,安装时会提示这样

而在安装了 Command Line Tools 之后就正常了,我也不知道它具体是干嘛的,反正就是好了。

结果再执行 make 的时候就正常了,一路绿到底
