账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    electron-vue build Error: spawn EPERM ?
    44
    0

    使用electron-vue脚手架构建的项目,通过electron-builder方式打包时报错如下:
    Error: spawn EPERM

    at _errnoException (util.js:1024:11)
    at ChildProcess.spawn (internal/child_process.js:323:11)
    at exports.spawn (child_process.js:502:9)
    at exports.execFile (child_process.js:212:15)
    at default (/Users/bobo/Desktop/des-bulider/node_modules/builder-util/src/util.ts:86:5)
    at exec (/Users/bobo/Desktop/des-bulider/node_modules/builder-util/src/util.ts:85:3)
    at wineExecutable.value.then.wine (/Users/bobo/Desktop/des-bulider/node_modules/builder-util/src/wine.ts:72:16)

    From previous event:

    at execWine (/Users/bobo/Desktop/des-bulider/node_modules/builder-util/src/wine.ts:64:8)
    at /Users/bobo/Desktop/des-bulider/node_modules/electron-builder-lib/src/winPackager.ts:326:11
    at Generator.next (<anonymous>)
    at runCallback (timers.js:789:20)
    at tryOnImmediate (timers.js:751:5)
    at processImmediate [as _immediateCallback] (timers.js:722:5)

    From previous event:

    at WinPackager.signAndEditResources (/Users/bobo/Desktop/des-bulider/node_modules/electron-builder-lib/out/winPackager.js:405:11)
    at /Users/bobo/Desktop/des-bulider/node_modules/electron-builder-lib/src/winPackager.ts:343:18
    at Generator.next (<anonymous>)

    From previous event:

    at WinPackager.signApp (/Users/bobo/Desktop/des-bulider/node_modules/electron-builder-lib/out/winPackager.js:423:11)
    at /Users/bobo/Desktop/des-bulider/node_modules/electron-builder-lib/src/platformPackager.ts:209:16
    at Generator.next (<anonymous>)
    at runCallback (timers.js:789:20)
    at tryOnImmediate (timers.js:751:5)
    at processImmediate [as _immediateCallback] (timers.js:722:5)

    From previous event:

    at WinPackager.doPack (/Users/bobo/Desktop/des-bulider/node_modules/electron-builder-lib/out/platformPackager.js:276:11)
    at /Users/bobo/Desktop/des-bulider/node_modules/electron-builder-lib/src/platformPackager.ts:113:16
    at Generator.next (<anonymous>)

    From previous event:

    at WinPackager.pack (/Users/bobo/Desktop/des-bulider/node_modules/electron-builder-lib/out/platformPackager.js:196:11)
    at /Users/bobo/Desktop/des-bulider/node_modules/electron-builder-lib/src/packager.ts:364:24
    at Generator.next (<anonymous>)
    at xfs.stat (/Users/bobo/Desktop/des-bulider/node_modules/fs-extra-p/node_modules/fs-extra/lib/mkdirs/mkdirs.js:56:16)
    at /Users/bobo/Desktop/des-bulider/node_modules/graceful-fs/polyfills.js:287:18
    at FSReqWrap.oncomplete (fs.js:153:5)

    From previous event:

    at Packager.doBuild (/Users/bobo/Desktop/des-bulider/node_modules/electron-builder-lib/out/packager.js:432:11)
    at /Users/bobo/Desktop/des-bulider/node_modules/electron-builder-lib/src/packager.ts:308:52
    at Generator.next (<anonymous>)
    at /Users/bobo/Desktop/des-bulider/node_modules/graceful-fs/graceful-fs.js:99:16
    at /Users/bobo/Desktop/des-bulider/node_modules/graceful-fs/graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:135:15)

    From previous event:

    at Packager._build (/Users/bobo/Desktop/des-bulider/node_modules/electron-builder-lib/out/packager.js:376:11)
    at /Users/bobo/Desktop/des-bulider/node_modules/electron-builder-lib/src/packager.ts:270:23
    at Generator.next (<anonymous>)
    at runCallback (timers.js:789:20)
    at tryOnImmediate (timers.js:751:5)
    at processImmediate [as _immediateCallback] (timers.js:722:5)

    From previous event:

    at Packager.build (/Users/bobo/Desktop/des-bulider/node_modules/electron-builder-lib/out/packager.js:332:11)
    at /Users/bobo/Desktop/des-bulider/node_modules/electron-builder/src/builder.ts:310:40
    at Generator.next (<anonymous>)

    From previous event:

    at _build (/Users/bobo/Desktop/des-bulider/node_modules/electron-builder/out/builder.js:61:21)
    at build (/Users/bobo/Desktop/des-bulider/node_modules/electron-builder/src/builder.ts:280:10)
    at then (/Users/bobo/Desktop/des-bulider/node_modules/electron-builder/src/cli/cli.ts:48:33)
    at runCallback (timers.js:789:20)
    at tryOnImmediate (timers.js:751:5)
    at processImmediate [as _immediateCallback] (timers.js:722:5)

    From previous event:

    at Object.args [as handler] (/Users/bobo/Desktop/des-bulider/node_modules/electron-builder/src/cli/cli.ts:48:33)
    at Object.runCommand (/Users/bobo/Desktop/des-bulider/node_modules/electron-builder/node_modules/yargs/lib/command.js:235:44)
    at Object.parseArgs [as _parseArgs] (/Users/bobo/Desktop/des-bulider/node_modules/electron-builder/node_modules/yargs/yargs.js:1074:24)
    at Object.get [as argv] (/Users/bobo/Desktop/des-bulider/node_modules/electron-builder/node_modules/yargs/yargs.js:989:21)
    at Object.<anonymous> (/Users/bobo/Desktop/des-bulider/node_modules/electron-builder/src/cli/cli.ts:42:15)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Function.Module.runMain (module.js:676:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
    

    通过查找相关问题说是设置文件为777,通过设置后依然报错
    请教哪位大侠遇到过此类问题,还望指点。感谢!

    1
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    扫一扫访问手机版

    回答动态

    师傅被妖怪抓走了:发布了悬赏问题火爆全网的“元宇宙”到底是什么?预计能赚取 1积分收益
    酒后略带风情:发布了悬赏问题Android内存中Graphics与Code占用过高预计能赚取 10积分收益
    扛起拖把扫天下:发布了悬赏问题typescript如何导出接口配置?求解,谢谢!预计能赚取 10积分收益
    发布了悬赏问题Vue 如何改变返回页面的路径?如让B页面只能返回到A页面.预计能赚取 11积分收益
    发布了悬赏问题vue H5移动端;底部bottom固定定位,安卓弹起键盘导致页面变形如何解决?预计能赚取 10积分收益
    发布了悬赏问题请问为什么tomcat8.5 GET请求中文正常,POST请求还需要设置UTF-8.预计能赚取 10积分收益
    发布了悬赏问题vue2.5+ts创建以及引入jq的方法预计能赚取 11积分收益
    情场浪女:发布了悬赏问题import ggplot时报错module 'pandas' has no attribute 'tslib'预计能赚取 10积分收益
    见心书画许老师18753375161:发布了悬赏问题echarts3 legend禁止点击事件,允许悬浮事件预计能赚取 11积分收益
    aa_92cb0bd09f:发布了悬赏问题codewar上的一个问题预计能赚取 11积分收益