在 终端 执行 ./uploadCloudFunction.bat
[error] {
code: 10,
message: 'Error: 错误 需要重新登录 (code 10)Error: 错误 需要重新登录 (code 10)\n' +
' at Object.GENERIC_ERROR (D:\\Program Files (x86)\\Tencent\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\7201d239ccdbdc262e2ecf5fe0c8aca3.js:2:93)\n' +
' at Proxy.exports.getAppInfo (D:\\Program Files (x86)\\Tencent\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\b3effda444fe34caae1384305e9562c6.js:2:1063)\n' +
' at processTicksAndRejections (node:internal/process/task_queues:93:5)\n' +
' at async Proxy.exports.getProjectInfo (D:\\Program Files (x86)\\Tencent\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\9d9d19a87db58211a644d4d305c488d5.js:2:2334)\n' +
' at async D:\\Program Files (x86)\\Tencent\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\7a975443f52e91830ae1d65cdf8c86db.js:2:3477\n' +
' at async f.<anonymous> (D:\\Program Files (x86)\\Tencent\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\7a975443f52e91830ae1d65cdf8c86db.js:2:2983)'
}

工具退出登录态重新登录试试