vue-pc 打包时异常

舵手 2021-7-2 793

打包环境:centos 7 Python 2.7.5 npm -v 6.14.4 node -v v14.0.0

打包时报错后手动下载了 linux_electron_deps.tar.gz 压缩包,解压后继续打包,还是报现同的错误。

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! wf-pc-chat@0.2.0 package: node scripts/validate.js && node scripts/del.js ./marswrapper.node && node scripts/copy-

proto.js && vue-cli-service electron:build

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the wf-pc-chat@0.2.0 package 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! /home/software/node_cache/_logs/2021-07-02T15_16_51_698Z-debug.log

上传的附件:
最新回复 (1)
  • x86 2021-7-3
    引用 2
    根据当前Linux平台的架构,请下载linux_electron_deps.tar.gz,x86和arm64架构都是这个依赖,解压到~/.cache/目录下,解压会解压出electron和electron-builder两个目录。如果这两个目录已经存在,可以直接覆盖。放置electron依赖后,请再次运行打包命令查看是否起作用。

    ------------

    确认下:解压到~/.cache/目录下,解压会解压出electron和electron-builder两个目录。
返回