Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

[WARNING] The version of Wrangler you are using is now out-of-date. #122

@et2017et

Description

@et2017et

发布时遇到下面的错误。应是Wrangler版本太低,请问要如何处理?谢谢

2025-06-10T07:05:45.584Z Initializing build environment...
2025-06-10T07:05:52.504Z Success: Finished initializing build environment
2025-06-10T07:05:52.635Z Cloning repository...
2025-06-10T07:05:53.528Z Detected the following tools from environment: yarn@4.9.1, npm@10.9.2, nodejs@22.16.0
2025-06-10T07:05:53.533Z Installing project dependencies: yarn
2025-06-10T07:05:54.547Z ➤ YN0087: Migrated your project to the latest Yarn version 🚀
2025-06-10T07:05:54.548Z
2025-06-10T07:05:54.550Z ➤ YN0000: · Yarn 4.5.0
2025-06-10T07:05:54.581Z ➤ YN0000: ┌ Resolution step
2025-06-10T07:05:58.762Z ➤ YN0085: │ + prettier@npm:2.6.0, webpack-cli@npm:4.9.2, webpack@npm:5.70.0, wrangler@npm:3.114.9, @cloudflare/kv-asset-handler@npm:0.3.4, and 301 more.
2025-06-10T07:05:58.787Z ➤ YN0000: └ Completed in 4s 206ms
2025-06-10T07:05:58.789Z ➤ YN0000: ┌ Fetch step
2025-06-10T07:06:06.325Z ➤ YN0013: │ 263 packages were added to the project (+ 183.27 MiB).
2025-06-10T07:06:06.326Z ➤ YN0000: └ Completed in 7s 538ms
2025-06-10T07:06:06.358Z ➤ YN0000: ┌ Link step
2025-06-10T07:06:09.207Z ➤ YN0007: │ esbuild@npm:0.17.19 must be built because it never has been before or the last one failed
2025-06-10T07:06:09.208Z ➤ YN0007: │ sharp@npm:0.33.5 must be built because it never has been before or the last one failed
2025-06-10T07:06:09.208Z ➤ YN0007: │ workerd@npm:1.20250408.0 must be built because it never has been before or the last one failed
2025-06-10T07:06:09.917Z ➤ YN0000: └ Completed in 3s 559ms
2025-06-10T07:06:09.940Z ➤ YN0000: · Done in 15s 389ms
2025-06-10T07:06:10.152Z Executing user build command: yarn run build
2025-06-10T07:06:11.612Z asset main.js 2.54 KiB [emitted] [minimized] (name: main)
2025-06-10T07:06:11.613Z ./src/index.js 5.17 KiB [built] [code generated]
2025-06-10T07:06:11.613Z webpack 5.70.0 compiled successfully in 386 ms
2025-06-10T07:06:11.639Z Success: Build command completed
2025-06-10T07:06:11.640Z Executing user deploy command: npx wrangler deploy
2025-06-10T07:06:13.660Z
2025-06-10T07:06:13.660Z ⛅️ wrangler 3.114.9 (update available 4.19.1)
2025-06-10T07:06:13.660Z ----------------------------------------------
2025-06-10T07:06:13.660Z
2025-06-10T07:06:13.735Z ▲ [WARNING] The version of Wrangler you are using is now out-of-date.
2025-06-10T07:06:13.735Z
2025-06-10T07:06:13.735Z Please update to the latest version to prevent critical errors.
2025-06-10T07:06:13.735Z Run npm install --save-dev wrangler@4 to update to the latest version.
2025-06-10T07:06:13.736Z After installation, run Wrangler with npx wrangler.
2025-06-10T07:06:13.736Z
2025-06-10T07:06:13.736Z
2025-06-10T07:06:13.747Z
2025-06-10T07:06:13.749Z ✘ [ERROR] Missing entry-point to Worker script or to assets directory
2025-06-10T07:06:13.749Z
2025-06-10T07:06:13.750Z
2025-06-10T07:06:13.750Z If there is code to deploy, you can either:
2025-06-10T07:06:13.750Z - Specify an entry-point to your Worker script via the command line (ex: npx wrangler deploy src/index.ts)
2025-06-10T07:06:13.751Z - Or add the following to your "wrangler.toml" file:
2025-06-10T07:06:13.751Z
2025-06-10T07:06:13.751Z 2025-06-10T07:06:13.752Z main = "src/index.ts" 2025-06-10T07:06:13.752Z 2025-06-10T07:06:13.752Z
2025-06-10T07:06:13.752Z
2025-06-10T07:06:13.752Z
2025-06-10T07:06:13.753Z If are uploading a directory of assets, you can either:
2025-06-10T07:06:13.753Z - Specify the path to the directory of assets via the command line: (ex: npx wrangler deploy --assets=./dist)
2025-06-10T07:06:13.753Z - Or add the following to your "wrangler.toml" file:
2025-06-10T07:06:13.753Z
2025-06-10T07:06:13.754Z 2025-06-10T07:06:13.754Z [assets] 2025-06-10T07:06:13.754Z directory = "./dist" 2025-06-10T07:06:13.755Z 2025-06-10T07:06:13.755Z
2025-06-10T07:06:13.756Z
2025-06-10T07:06:13.757Z
2025-06-10T07:06:13.757Z
2025-06-10T07:06:13.757Z
2025-06-10T07:06:13.757Z 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-06-10T07:06:13.774Z 🪵 Logs were written to "/opt/buildhome/.config/.wrangler/logs/wrangler-2025-06-10_07-06-13_082.log"
2025-06-10T07:06:13.931Z Failed: error occurred while running deploy command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions