码迷,mamicode.com
首页 > 移动开发 > 详细

electron-vue在npm run build时报错 ? cannot execute cause=fork/exec C:\Users\801\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.5.0\rcedit-ia32.exe: Access is denied.

时间:2019-10-21 19:12:43      阅读:371      评论:0      收藏:0      [点我收藏+]

标签:rod   local   builder   use   HERE   can   LEDE   移除   this   

问题描述

在electron-vue执行npm run build时报错,错误如下:

? cannot execute cause=fork/exec C:\Users\801\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.5.0\rcedit-ia32.exe: Access is denied.
command=‘C:\Users\801\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.5.0\rcedit-ia32.exe‘ ‘C:\temp\wechat\build\win-ia32-unpacked\wechat.exe‘ --set-version-string FileDescription wechat --set-version-string ProductName wechat --set-version-string LegalCopyright ‘Copyright © 2019 wechat‘ --set-file-version 0.0.1 --set-product-version 0.0.1.0 --set-version-string InternalName wechat --set-version-string OriginalFilename ‘‘
workingDir=
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! wechat@0.0.1 build: `node .electron-vue/build.js && electron-builder`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wechat@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\801\AppData\Roaming\npm-cache\_logs\2019-10-21T10_06_37_071Z-debug.log

解决方式

发现电脑右下角有一个提示,那个提示现在也没法重现了,大概意思就是这个执行程序被我设置阻止运行了,点击打开,把他移除被阻止运行即可。

electron-vue在npm run build时报错 ? cannot execute cause=fork/exec C:\Users\801\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.5.0\rcedit-ia32.exe: Access is denied.

标签:rod   local   builder   use   HERE   can   LEDE   移除   this   

原文地址:https://www.cnblogs.com/brock/p/11715152.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!