收藏
回答

使用 miniprogram-ci 上传云函数时出现错误?

const project = new ci.Project({
    appid: '***',
    type: 'miniProgram',
    projectPath: `${HOUSE_RENTAL_ROOT}/client/dist`,
    privateKeyPath: `${HOUSE_RENTAL_ROOT}/client/key/private.key`,
    ignores: ['node_modules/**/*'],
})

const result = await ci.cloud.uploadFunction({
    project,
    env: PROD_CLOUD_ID,
    name: 'common',
    path: `${HOUSE_RENTAL_ROOT}/cloud/functions`,
    remoteNpmInstall: true // 是否云端安装依赖
})
console.log(result, 'result')



报错:

回答关注问题邀请回答
收藏
登录 后发表内容