失败: 运行部署命令时发生错误

作者: ljfing111创建于 2025年12月11日更新于 2025年12月11日

2025-12-11T01:46:02.351Z Initializing build environment... 2025-12-11T01:46:05.866Z Success: Finished initializing build environment 2025-12-11T01:46:06.785Z Cloning repository... 2025-12-11T01:46:08.633Z No build output detected to cache. Skipping. 2025-12-11T01:46:08.633Z No dependencies detected to cache. Skipping. 2025-12-11T01:46:08.635Z Detected the following tools from environment: 2025-12-11T01:46:08.824Z Executing user deploy command: npx wrangler deploy 2025-12-11T01:46:11.485Z npm warn exec The following package was not found and will be installed: [email protected] 2025-12-11T01:46:32.635Z 2025-12-11T01:46:32.636Z ⛅️ wrangler 4.53.0 2025-12-11T01:46:32.636Z ─────────────────── 2025-12-11T01:46:32.650Z 2025-12-11T01:46:33.953Z ✘ [ERROR] Missing entry-point to Worker script or to assets directory 2025-12-11T01:46:33.954Z 2025-12-11T01:46:33.954Z
2025-12-11T01:46:33.954Z If there is code to deploy, you can either: 2025-12-11T01:46:33.954Z - Specify an entry-point to your Worker script via the command line (ex: npx wrangler deploy src/index.ts) 2025-12-11T01:46:33.954Z - Or create a "wrangler.jsonc" file containing: 2025-12-11T01:46:33.954Z
2025-12-11T01:46:33.954Z 2025-12-11T01:46:33.954Z { 2025-12-11T01:46:33.954Z "name": "worker-name", 2025-12-11T01:46:33.954Z "compatibility_date": "2025-12-11", 2025-12-11T01:46:33.954Z "main": "src/index.ts" 2025-12-11T01:46:33.954Z } 2025-12-11T01:46:33.955Z 2025-12-11T01:46:33.955Z
2025-12-11T01:46:33.956Z If are uploading a directory of assets, you can either: 2025-12-11T01:46:33.956Z - Specify the path to the directory of assets via the command line: (ex: npx wrangler deploy --assets=./dist) 2025-12-11T01:46:33.956Z - Or create a "wrangler.jsonc" file containing: 2025-12-11T01:46:33.957Z
2025-12-11T01:46:33.957Z 2025-12-11T01:46:33.957Z { 2025-12-11T01:46:33.957Z "name": "worker-name", 2025-12-11T01:46:33.957Z "compatibility_date": "2025-12-11", 2025-12-11T01:46:33.957Z "assets": { 2025-12-11T01:46:33.957Z "directory": "./dist" 2025-12-11T01:46:33.958Z } 2025-12-11T01:46:33.958Z } 2025-12-11T01:46:33.958Z 2025-12-11T01:46:33.958Z
2025-12-11T01:46:33.958Z 2025-12-11T01:46:33.983Z 2025-12-11T01:46:33.983Z Cloudflare collects anonymous telemetry about your usage of Wrangler. Learn more at https://GitHub.com/Cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md 2025-12-11T01:46:34.011Z Logs were written to "/opt/buildhome/.config/.wrangler/logs/wrangler-2025-12-11_01-46-25_989.log" 2025-12-11T01:46:34.190Z Failed: error occurred while running deploy command

内容来源: cmliu/CF-Workers-docker.io