window下electron-builder执行electron-builder --win --x64命令报错

• building target=nsis file=packersZhaizhishe-setup-0.0.1.exe archs=x64, ia32 oneClick=true
Error: C:UsersAdministratorAppDataLocalelectron-buildercachensisnsis-3.0.3.0Binmakensis.exe exited with code 1
Output:
Command line defined: "APP_ID=org.lzj.demo1"
Command line defined: "APP_GUID=bd0576c0-c762-56de-9d81-9c215af5daac"
Command line defined: "PRODUCT_NAME=Zhaizhishe"
Command line defined: "PRODUCT_FILENAME=Zhaizhishe"
Command line defined: "APP_FILENAME=Zhaizhishe"
Command line defined: "APP_DESCRIPTION=��һ���汾"
Command line defined: "VERSION=0.0.1"
Command line defined: "PROJECT_DIR=F:workspaceͰװˮ��Ŀtrunkcodefront_endpcmerch-endelectron-app"
Command line defined: "BUILD_RESOURCES_DIR=F:workspaceͰװˮ��Ŀtrunkcodefront_endpcmerch-endelectron-appbuild"
Command line defined: "APP_32=F:workspaceͰװˮ��Ŀtrunkcodefront_endpcmerch-endelectron-apppackersapplication-name-0.0.1-ia32.nsis.7z"
Command line defined: "APP_32_NAME=application-name-0.0.1-ia32.nsis.7z"
Command line defined: "APP_32_HASH=DE5EBADF1D45684C6E356B6CB89B7AD316D38F9F0BC0D832D8BE6EB1548F6E05C3210FC141EDCC720C6E9DF5899497DAD622233187F3787DF523AF35FD6B975B"
Command line defined: "APP_64=F:workspaceͰװˮ��Ŀtrunkcodefront_endpcmerch-endelectron-apppackersapplication-name-0.0.1-x64.nsis.7z"
Command line defined: "APP_64_NAME=application-name-0.0.1-x64.nsis.7z"
Command line defined: "APP_64_HASH=0DC7A70B7392CABFEFAB78AFFA0BC7C0768B7E42F0B261AECB838893968F01DD7F173D4B866F65EB41D4B1094745FA089BF1F09D33A154370F881F55C573C9BE"
Command line defined: "COMPANY_NAME=lzj"
Command line defined: "APP_INSTALLER_STORE_FILE=Zhaizhisheinstaller.exe"
Command line defined: "COMPRESSION_METHOD=7z"
Command line defined: "ONE_CLICK"
Command line defined: "RUN_AFTER_FINISH"
Command line defined: "INSTALL_MODE_PER_ALL_USERS"
Command line defined: "INSTALL_MODE_PER_ALL_USERS_REQUIRED"
Command line defined: "SHORTCUT_NAME=Zhaizhishe"
Command line defined: "UNINSTALL_DISPLAY_NAME=Zhaizhishe 0.0.1"
Command line defined: "COMPRESS=auto"
Command line defined: "BUILD_UNINSTALLER"
Command line defined: "UNINSTALLER_OUT_FILE=F:workspaceͰװˮ��Ŀtrunkcodefront_endpcmerch-endelectron-apppackers.__uninstaller-nsis-application-name.exe"
Processing config: C:UsersAdministratorAppDataLocalelectron-buildercachensisnsis-3.0.3.0nsisconf.nsh
Processing script file: "<stdin>" (ACP)

Error output:
!include: could not find: "F:workspace桶装水项目trunkcodefront_endpcmerch-endelectron-appnode_moduleselectron-builder-libtemplatesnsisincludeStdUtils.nsh"
Error in script "<stdin>" on line 1 -- aborting creation process

at ChildProcess.childProcess.once.code (F:\workspace\桶装水项目\trunk\code\front_end\pc\merch-end\electron-app\node_modules\builder-util\src\util.ts:251:14)
at Object.onceWrapper (events.js:317:30)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

阅读 12.6k
2 个回答
新手上路,请多包涵

electron项目路径不能有中文,你再试试,我解决了

新手上路,请多包涵

解决了吗?怎么解决的

推荐问题
宣传栏