Skip to content

"create-hono" command error #98

@ysng007

Description

@ysng007

yinsheng@yinshengdeMac-mini demo % yarn create hono my-app
yarn create v1.22.22
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...

success Installed "[email protected]" with binaries:
- create-hono
[##] 2/2create-hono version 0.18.0
✔ Using target directory … my-app

/Users/yinsheng/.config/yarn/global/node_modules/create-hono/bin:14026
const last = items.findLastIndex(isSelectable);
^

TypeError: items.findLastIndex is not a function
at /Users/yinsheng/.config/yarn/global/node_modules/create-hono/bin:14026:24
at /Users/yinsheng/.config/yarn/global/node_modules/create-hono/bin:13301:21
at withPointer (/Users/yinsheng/.config/yarn/global/node_modules/create-hono/bin:12854:23)
at useMemo (/Users/yinsheng/.config/yarn/global/node_modules/create-hono/bin:13298:10)
at /Users/yinsheng/.config/yarn/global/node_modules/create-hono/bin:14024:18
at /Users/yinsheng/.config/yarn/global/node_modules/create-hono/bin:13820:28
at Object.store.handleChange (/Users/yinsheng/.config/yarn/global/node_modules/create-hono/bin:12808:9)
at cycle (/Users/yinsheng/.config/yarn/global/node_modules/create-hono/bin:12810:13)
at /Users/yinsheng/.config/yarn/global/node_modules/create-hono/bin:13818:7
at /Users/yinsheng/.config/yarn/global/node_modules/create-hono/bin:12812:12
error Command failed.
Exit code: 1
Command: /Users/yinsheng/.yarn/bin/create-hono
Arguments: my-app
Directory: /Users/yinsheng/Documents/demo
Output:

info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions