11 Replies
you can try using npm/pnpm/yarn instead
when using bun i normally use
what bun version are you using?
bun create hono
works fine on 1.2.13
I'm getting error on NPM as well
npm create hono@latest
what's the error you get when running with
npm
?TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension "" for C:\Users\Swaraj Sahu\AppData\Local\npm-cache_npx\6ccc1d6f54609fb5\node_modules\create-hono\bin. Loading extensionless files is not supported inside of "type":"module" package.json contexts. The package.json file C:\Users\Swaraj Sahu\AppData\Local\npm-cache_npx\6ccc1d6f54609fb5\node_modules\create-hono\package.json caused this "type":"module" context. Try changing C:\Users\Swaraj Sahu\AppData\Local\npm-cache_npx\6ccc1d6f54609fb5\node_modules\create-hono\bin to have a file extension. Note the "bin" field of package.json can point to a file with an extension, for example {"type":"module","bin":{"bin":".\bin.js"}}
and what version of node are you using?
or ig npm
node v20.9.0
npm v10.1.0
i can repro the issue with
20.9.0
, but my current version (22.13.0
) works fineok let me upgrade node.. and check
ok upgraded node to 22. working fine now..
dope