linux机器上使用jenkins打包部署uniapp开发的h5页面,
总是失败,请问怎么有成功的吗
events.js:352
throw er; // Unhandled 'error' event
^
Error: spawn vue-cli-service ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:467:16)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
at onErrorNT (internal/child_process.js:467:16)
at processTicksAndRejections (internal/process/task_queues.js:82:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn vue-cli-service',
path: 'vue-cli-service',
spawnargs: [ 'uni-build' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zwtx@1.0.1 build:dev: `cross-env NODE_ENV=development UNI_PLATFORM=h5 UNI_OUTPUT_DIR=dist vue-cli-service uni-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zwtx@1.0.1 build:dev 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! /root/.npm/_logs/2022-06-02T06_32_23_940Z-debug.log
/etc/shell_sh/unih5_sh.sh: 第 42 行:cd: ./dist: 没有那个文件或目录
小吉同学 (作者)
应该支持了,
2023-02-08 06:06