Electron打包的时候路径出现问题!include: could not find: "C:\Users\xxxx\AppData\Local\Temp\t-TH3KzB\0-messages.nsh"
!include: could not open file: "C:\ztg\projects\electron-vite-vue-ts\node_modules\.pnpm\app-builder-l
ib@24.13.3_dmg-builder@24.13.3_electron-builder-squirrel-windows@24.13.3_dmg-bui_lrspnoputfiosacwyigc
ypdbdi\node_modules\app-builder-lib\templates\nsis\include\allowOnlyOneInstallerInstance.nsh"
出现:
!include: could not open file,错误;
网上说是路径中有中文,我的路径上没有中文,我想是不是也是路径的问题,除了中文的问题,我只能想到路径的长度问题了,于是我把文件目录的名称改短点,重新
pnpm i pnpm build:win
成功了