electron-egg启动项目时报错 fsexistsSync is not a function at getElectronPath
这个错误是因为在使用electron-egg启动项目时,fs.existsSync方法不存在导致的。
解决方法是,在项目中安装electron和fs-extra两个依赖项。可以使用以下命令来安装:
npm install electron fs-extra --save
安装完成后,再次尝试启动项目,应该就不会报错了。
原文地址: https://www.cveoy.top/t/topic/i90J 著作权归作者所有。请勿转载和采集!