window下执行 npm run electron:build报如下错误:

• 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: “” (ACP)

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

解决方法:项目路径不能有中文!!!!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值