問題描述
在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
解決方式
發現電腦右下角有一個提示,那個提示現在也沒法重現了,大概意思就是這個執行程序被我設置阻止運行了,點擊打開,把他移除被阻止運行即可。