May be a
electron-packagerbug
Init the project by vue-cli, it but build fail by yarn run build or npm run build
I just added the download.mirror config to build.config.js
download: {
mirror: 'https://npm.taobao.org/mirrors/electron/'
},
Packaging app for platform darwin x64 using electron v1.7.8
ERROR `electron-packager` says...
Error: Command failed: npm prune --production
npm WARN [email protected] No repository field.
npm ERR! May not delete: C:\Users\gaoym\AppData\Local\Temp\electron-packager\dar
win-x64\electron-vue-demo-darwin-x64\Electron.app\Contents\Resources\app\node_mo
dules\.bin
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\gaoym\AppData\Roaming\npm-cache\_logs\2017-09-27T10_33_42_
957Z-debug.log
Same error here, but on MacOS:
This is a [email protected] bug. Update npm to fix.
Related #348
Most helpful comment
This is a
[email protected]bug. Updatenpmto fix.Related #348