Error when init with yarn

home@portal RESTAPI % yarn create cloudflare@latest
yarn create v1.22.19
[1/4] πŸ” Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] πŸ”— Linking dependencies...
[4/4] πŸ”¨ Building fresh packages...
success Installed "create-cloudflare@2.2.2" with binaries:
- create-cloudflare
/bin/sh: /Users/home/.yarn/bin/create-cloudflare@latest: No such file or directory
error Command failed.
Exit code: 127
Command: /Users/home/.yarn/bin/create-cloudflare@latest
Arguments:
Directory: /Users/home/Developer/Projects/RESTAPI
Output:

info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.
home@portal RESTAPI %
home@portal RESTAPI % yarn create cloudflare@latest
yarn create v1.22.19
[1/4] πŸ” Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] πŸ”— Linking dependencies...
[4/4] πŸ”¨ Building fresh packages...
success Installed "create-cloudflare@2.2.2" with binaries:
- create-cloudflare
/bin/sh: /Users/home/.yarn/bin/create-cloudflare@latest: No such file or directory
error Command failed.
Exit code: 127
Command: /Users/home/.yarn/bin/create-cloudflare@latest
Arguments:
Directory: /Users/home/Developer/Projects/RESTAPI
Output:

info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.
home@portal RESTAPI %
3 Replies
potato
potatoβ€’10mo ago
FIX: use yarn create cloudflare instead of yarn create cloudflare@latest
potato
potatoβ€’10mo ago
Get started guide Β· Cloudflare Workers docs
This guide will instruct you through setting up and deploying your first Worker.
Cyb3r-Jak3
Cyb3r-Jak3β€’10mo ago
You can make a PR or an issue on the docs repo. https://github.com/cloudflare/cloudflare-docs
GitHub
GitHub - cloudflare/cloudflare-docs: Cloudflare’s documentation
Cloudflare’s documentation. Contribute to cloudflare/cloudflare-docs development by creating an account on GitHub.