➜ myapp-1 npm config get registry
https://registry.npmjs.org/
➜ myapp-1 node -v
v15.11.0
➜ myapp-1 npm -v
7.6.0
- 发布:2021-03-29 18:11
- 更新:2021-03-29 18:49
- 阅读:1049
产品分类: uniCloud/阿里云
示例代码:
操作步骤:
运行云服务空间初始化向导。。。
运行云服务空间初始化向导。。。
预期结果:
正常
正常
实际结果:
18:02:31.277 [腾讯云:tx]正在上传公共模块...
18:02:31.367 [腾讯云:tx]公共模块上传失败。失败原因:npm install 执行失败。请检查node执行环境。 例:尝试安装npm并设置环境变量后,再次操作。
env: node: No such file or directory
18:02:32.195 [腾讯云:tx]正在上传云函数mix-address...
18:02:32.791 [腾讯云:tx]云函数mix-address上传失败。失败原因:云函数 mix-address 依赖的公共模块 uni-id 不存在或未上传到云端。
18:02:32.792 [腾讯云:tx]批量上传云函数结束。已上传0个云函数。未上传的云函数如下:mix-cors-breage,mix-coupon,mix-live,mix-order,mix-sms,mix-uniapp,mix-user,payment-notify。
18:02:31.277 [腾讯云:tx]正在上传公共模块...
18:02:31.367 [腾讯云:tx]公共模块上传失败。失败原因:npm install 执行失败。请检查node执行环境。 例:尝试安装npm并设置环境变量后,再次操作。
env: node: No such file or directory
18:02:32.195 [腾讯云:tx]正在上传云函数mix-address...
18:02:32.791 [腾讯云:tx]云函数mix-address上传失败。失败原因:云函数 mix-address 依赖的公共模块 uni-id 不存在或未上传到云端。
18:02:32.792 [腾讯云:tx]批量上传云函数结束。已上传0个云函数。未上传的云函数如下:mix-cors-breage,mix-coupon,mix-live,mix-order,mix-sms,mix-uniapp,mix-user,payment-notify。
bug描述:
18:02:31.277 [腾讯云:tx]正在上传公共模块...
18:02:31.367 [腾讯云:tx]公共模块上传失败。失败原因:npm install 执行失败。请检查node执行环境。 例:尝试安装npm并设置环境变量后,再次操作。
env: node: No such file or directory
18:02:32.195 [腾讯云:tx]正在上传云函数mix-address...
18:02:32.791 [腾讯云:tx]云函数mix-address上传失败。失败原因:云函数 mix-address 依赖的公共模块 uni-id 不存在或未上传到云端。
18:02:32.792 [腾讯云:tx]批量上传云函数结束。已上传0个云函数。未上传的云函数如下:mix-cors-breage,mix-coupon,mix-live,mix-order,mix-sms,mix-uniapp,mix-user,payment-notify。
2 个回复
草木每 (作者)
运行图中操作
DCloud_HB_WDL
无法复现。提供下运行日志(菜单【帮助】【查看运行日志】)
草木每 (作者)
2021-04-27 11:26:29.218 [WARNING:] [Expression] "Unsupport Expr : unicloud.canShowClientDBActionDeleteFiles"
2021-04-27 11:26:32.652 [WARNING:] QLayout: Attempting to add QLayout "" to UniCloudWizard "UniCloudWizard", which already has a layout
2021-04-27 11:26:32.653 [WARNING:] QLayout: Attempting to add QLayout "" to UniCloudWizard "UniCloudWizard", which already has a layout
2021-04-27 11:26:32.653 [WARNING:] QLayout: Attempting to add QLayout "" to UniCloudWizard "UniCloudWizard", which already has a layout
2021-04-27 11:26:32.653 [WARNING:] QLayout: Attempting to add QLayout "" to UniCloudWizard "UniCloudWizard", which already has a layout
2021-04-27 11:26:32.653 [WARNING:] QLayout: Attempting to add QLayout "" to UniCloudWizard "UniCloudWizard", which already has a layout
2021-04-27 11:26:32.653 [WARNING:] QLayout: Attempting to add QLayout "" to UniCloudWizard "UniCloudWizard", which already has a layout
2021-04-27 11:26:32.654 [WARNING:] QLayout: Attempting to add QLayout "" to CheckLoginStatePage "", which already has a layout
2021-04-27 11:26:32.662 [WARNING:] QLayout: Attempting to add QLayout "" to OperateCloudSpacePage "", which already has a layout
2021-04-27 11:26:32.663 [WARNING:] QLayout: Attempting to add QLayout "" to OperateCloudSpacePage "", which already has a layout
2021-04-27 11:26:32.663 [WARNING:] QLayout: Attempting to add QLayout "" to OperateCloudSpacePage "", which already has a layout
2021-04-27 11:26:32.670 [WARNING:] QLayout: Attempting to add QLayout "" to OperateCloudSpacePage "", which already has a layout
2021-04-27 11:26:32.672 [WARNING:] QLayout: Attempting to add QLayout "" to DeployResourcesToUniCloudPage "", which already has a layout
2021-04-27 11:26:32.672 [WARNING:] QLayout: Attempting to add QLayout "" to DeployResourcesToUniCloudPage "", which already has a layout
2021-04-27 11:26:32.672 [WARNING:] QLayout: Attempting to add QLayout "" to DeployResourcesToUniCloudPage "", which already has a layout
2021-04-27 11:26:32.679 [WARNING:] QLayout: Attempting to add QLayout "" to UniCloudWizard "UniCloudWizard", which already has a layout
2021-04-27 11:26:32.798 [WARNING:] QPainter::restore: Unbalanced save/restore
2021-04-27 11:26:32.799 [WARNING:] QPainter::restore: Unbalanced save/restore
2021-04-27 11:26:32.800 [WARNING:] QPainter::restore: Unbalanced save/restore
2021-04-27 11:26:32.903 [WARNING:] QPainter::restore: Unbalanced save/restore
2021-04-27 11:26:32.903 [WARNING:] QPainter::restore: Unbalanced save/restore
2021-04-27 11:26:32.903 [WARNING:] QPainter::restore: Unbalanced save/restore
2021-04-27 11:26:32.945 [WARNING:] QPainter::restore: Unbalanced save/restore
2021-04-27 11:26:32.945 [WARNING:] QPainter::restore: Unbalanced save/restore
2021-04-27 11:26:32.945 [WARNING:] QPainter::restore: Unbalanced save/restore
2021-04-27 11:26:34.067 [WARNING:] QPainter::restore: Unbalanced save/restore
2021-04-27 11:26:34.067 [WARNING:] QPainter::restore: Unbalanced save/restore
2021-04-27 11:26:34.068 [WARNING:] QPainter::restore: Unbalanced save/restore
2021-04-27 11:26:37.943 [INFO:] upload common module begin
2021-04-27 11:26:37.944 [INFO:] temp commonModule dir path is: "/var/folders/j_/ts3x4d_s2zx7jv7prmqznjxr0000gn/T/HBuilder X-SB8PYz/commonModule"
2021-04-27 11:26:37.945 [INFO:] copy common dir: "/Users/miss/Documents/HBuilderProjects/shopdemo/uniCloud-tcb/cloudfunctions/common/config" to: "/var/folders/j_/ts3x4d_s2zx7jv7prmqznjxr0000gn/T/HBuilder X-SB8PYz/commonModule/config"
2021-04-27 11:26:37.949 [INFO:] module name: "config"
2021-04-27 11:26:37.949 [INFO:] compress result: " true"
2021-04-27 11:26:37.952 [INFO:] copy common dir: "/Users/miss/Documents/HBuilderProjects/shopdemo/uniCloud-tcb/cloudfunctions/common/uni-id" to: "/var/folders/j_/ts3x4d_s2zx7jv7prmqznjxr0000gn/T/HBuilder X-SB8PYz/commonModule/uni-id"
2021-04-27 11:26:37.960 [INFO:] module name: "uni-id"
2021-04-27 11:26:37.960 [INFO:] compress result: " true"
2021-04-27 11:26:37.963 [INFO:] copy common dir: "/Users/miss/Documents/HBuilderProjects/shopdemo/uniCloud-tcb/cloudfunctions/common/unipay" to: "/var/folders/j_/ts3x4d_s2zx7jv7prmqznjxr0000gn/T/HBuilder X-SB8PYz/commonModule/unipay"
2021-04-27 11:26:37.966 [INFO:] module name: "unipay"
2021-04-27 11:26:37.966 [INFO:] compress result: " true"
2021-04-27 11:26:37.968 [INFO:] copy common dir: "/Users/miss/Documents/HBuilderProjects/shopdemo/uniCloud-tcb/cloudfunctions/common/wx-auth" to: "/var/folders/j_/ts3x4d_s2zx7jv7prmqznjxr0000gn/T/HBuilder X-SB8PYz/commonModule/wx-auth"
2021-04-27 11:26:37.969 [INFO:] npm install
2021-04-27 11:26:38.035 [INFO:] error: "未知的错误"
2021-04-27 11:26:38.035 [INFO:] standard output: ""
2021-04-27 11:26:38.035 [INFO:] standard error: "env: node: No such file or directory\n"
2021-04-27 11:26:38.036 [INFO:] output: ""
2021-04-27 11:26:38.036 [INFO:] common module zip path is: ""
2021-04-27 11:26:39.201 [INFO:] attachment path: "/Users/miss/Documents/HBuilderProjects/shopdemo/uniCloud-tcb/cloudfunctions/mix-address"
2021-04-27 11:26:39.201 [INFO:] check index.js completed.
2021-04-27 11:26:39.201 [INFO:] check dependencies whether in common dir
2021-04-27 11:26:39.201 [INFO:] message: ""
2021-04-27 11:26:39.202 [INFO:] message: ""
2021-04-27 11:26:39.202 [INFO:] local dependencies size: 1
2021-04-27 11:26:39.202 [INFO:] upload cloud function temp dir: "/var/folders/j_/ts3x4d_s2zx7jv7prmqznjxr0000gn/T/HBuilder X-juDVx7"
2021-04-27 11:26:39.207 [INFO:] copy files in upload cloud function process
2021-04-27 11:26:39.207 [INFO:] npm install in upload function process
2021-04-27 11:26:39.208 [INFO:] compress dir with dependencies: "/var/folders/j_/ts3x4ds2zx7jv7prmqznjxr0000gn/T/HBuilder X-juDVx7/mix-address" to: "/var/folders/j/ts3x4d_s2zx7jv7prmqznjxr0000gn/T/mix-address.zip"
2021-04-27 11:26:39.209 [INFO:] compress succeed.
2021-04-27 11:26:39.210 [INFO:] cloud function attachment: "/var/folders/j_/ts3x4d_s2zx7jv7prmqznjxr0000gn/T/mix-address.zip"
2021-04-27 11:26:39.210 [INFO:] cloud function attachment variant: QVariant(QUrl, QUrl("file:///var/folders/j_/ts3x4d_s2zx7jv7prmqznjxr0000gn/T/mix-address.zip"))
2021-04-27 11:28