按这个贴 https://www.crmeb.com/ask/thread/47321 修改了代码,进行打包(报错),不修改代码就可以正常打包。
邦忙看下,代码修改的位置是否正确(因为修复贴没有截图全)
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build:prod' ]
2 info using npm@6.14.14
3 info using node@v14.17.4
4 verbose run-script [ 'prebuild:prod', 'build:prod', 'postbuild:prod' ]
5 info lifecycle vue-element-mer@4.2.1~prebuild:prod: vue-element-mer@4.2.1
6 info lifecycle vue-element-mer@4.2.1~build:prod: vue-element-mer@4.2.1
7 verbose lifecycle vue-element-mer@4.2.1~build:prod: unsafe-perm in lifecycle true
8 verbose lifecycle vue-element-mer@4.2.1~build:prod: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/chenkevin/Desktop/kevin/项目_电商软件/技术部/多商户【国内版】/v2.3.2/HBN_Mer_v2.3.2(20240710)/view/mer/node_modules/.bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
9 verbose lifecycle vue-element-mer@4.2.1~build:prod: CWD: /Users/chenkevin/Desktop/kevin/项目_电商软件/技术部/多商户【国内版】/v2.3.2/HBN_Mer_v2.3.2(20240710)/view/mer
10 silly lifecycle vue-element-mer@4.2.1~build:prod: Args: [ '-c', 'vue-cli-service build' ]
11 silly lifecycle vue-element-mer@4.2.1~build:prod: Returned: code: 1 signal: null
12 info lifecycle vue-element-mer@4.2.1~build:prod: Failed to exec build:prod script
13 verbose stack Error: vue-element-mer@4.2.1 build:prod: `vue-cli-service build`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:400:28)
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:400:28)
13 verbose stack at maybeClose (internal/child_process.js:1055:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
14 verbose pkgid vue-element-mer@4.2.1
15 verbose cwd /Users/chenkevin/Desktop/kevin/项目_电商软件/技术部/多商户【国内版】/v2.3.2/HBN_Mer_v2.3.2(20240710)/view/mer
16 verbose Darwin 22.6.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build:prod"
18 verbose node v14.17.4
19 verbose npm v6.14.14
20 error code ELIFECYCLE
21 error errno 1
22 error vue-element-mer@4.2.1 build:prod: `vue-cli-service build`
22 error Exit status 1
23 error Failed at the vue-element-mer@4.2.1 build:prod script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}