cloudflare / workers-sdk

⛅️ Home to Wrangler, the CLI for Cloudflare Workers®
https://developers.cloudflare.com/workers/
Apache License 2.0
2.6k stars 674 forks source link

🐛 BUG: npm create cloudflare with checking version endless loop #6061

Closed yunnysunny closed 3 months ago

yunnysunny commented 3 months ago

Which Cloudflare product(s) does this pertain to?

C3

What version(s) of the tool(s) are you using?

2.21.6

What version of Node are you using?

18.20.3

What operating system and version are you using?

windows 10

Describe the Bug

Observed behavior

When run npm create cloudflare, it show Checking if a newer version is available again and again, with no error.

image

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

threepointone commented 3 months ago

Odd, I can't reproduce that here. Can you try npm create cloudflare@latest?

yunnysunny commented 3 months ago

npm create cloudflare@latest has the samp problem: image

Momoka7 commented 3 months ago

I have the same problem. Checking if a newer version is available for many times,then the error 'create-cloudflare' is not recognized as an internal or external command, operable program or batch file. occurred. image

Momoka7 commented 3 months ago

I have the same problem. Checking if a newer version is available for many times,then the error 'create-cloudflare' is not recognized as an internal or external command, operable program or batch file. occurred. image

Consider change your npm registry, some third party registry may absent the latest version of create-cloudflare.

yunnysunny commented 3 months ago

I use registry https://registry.npmmirror.com , and it lacked latest version. I synced it manual image it works ok now.

But I think it maybe better to show the reason why download failed.