miniprogram-ci找不到project.config.json文件?
发布于 6 年前 作者 li56 4126 次浏览 来自 官方Issues

运行miniprogram-ci预览命令时,一直提示如下错误:

processing: app.json
done: app.json
processing: ext.json
done: ext.json
processing: pages/main/home/index
(node:32202) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/XXX/project.config.json'
(node:32202) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:32202) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

project.config.json是微信开发者工具自动生成的,ci工具无法生成该文件,但ci命令又需要用到该文件,有办法解决这个报错嘛

2 回复

–pp 这个目录下必须存在project.config.json 这个文件

ci运行命令如下:

miniprogram-ci \
  preview \
  --pp /xxx \
  --pkp /xxx/private.XXX.key \
  --appid XXX \
  --uv 1.0 \
  --enable-es6 true \
  --qrcode-format image \
  --qrcode-output-dest '/xxx/test.jpg'
回到顶部