该函数之前能够正常上传,并能够正常运行。本次上传时发现npm部署环境时出现相关问题。
此时对应的package.json文件为:
{
"name": "duty",
"dependencies": {
"axios": "^0.27.2",
"moment": "^2.29.4",
"qs": "^6.11.2",
"baidubce-access-token": "file:../common/baidubce-access-token",
"wecom-access-token": "file:../common/wecom-access-token",
"uni-cloud-router": "file:../../../uni_modules/uni-cloud-router/uniCloud/cloudfunctions/common/uni-cloud-router",
"uni-config-center": "file:../../../uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
},
"extensions": {}
}
注释掉其他依赖后可正常上传部署:
请问是什么问题?
Windows 10,node 20.16.0,npm 10.8.1,HBuilderX 4.24