fastify-htmx-ts-starter-kit
fastify-htmx-ts-starter-kit copied to clipboard
(minor) Can't start with "bun (or node) create fastify-htmx-ts-app@latest testx"
(I'm quite old in dev, but quite new in js/ts/node stuff, and node/npm just terrify me - so I rather use bun.sh)
bun create fastify-htmx-ts-app@latest testx
resulted in
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
It works well with other repos, however - bun create vite@latest vite
is ok.
Fortunately I succeeded with bun create claudioc/fastify-htmx-ts-starter-kit testx
There might be something to fix in your repo configuration?
Edit: npm create fastify-htmx-ts-app@latest also resulted into errors
Hello! This starter kit is tested only with node.js, not bun (which may or may not work, as you said).
Bun is supposed to be compatible with node but since the toolkit is also using some other dependencies, if one of them is not compatible, then what should we do?
Admittedly, using bun could simplify this toolkit even more (concerning TypeScript and JSX for example), but that would need a different approach, a fork of the project. Since I am not - currently - a user of Bun myself, I can only see this as a future improvement as soon as I will start using bun!
I am going to re-check the installer for npm now
I just run the create command on a linux machine and on a macOS one and it works.
claudioc@somewhere:~/tmp$ npm create fastify-htmx-ts-app@latest testx
Success! Created testx at /home/claudioc/tmp/testx
One is my local machine (the laptop) and the other one is a server
Don't work/ I need help )) May be i need use another version nodejs?
F:\Projects\declon\decl-fastify> npm create fastify-htmx-ts-app@latest my-app
npx create-fastify-htmx-ts-app my-app
node:internal/errors:983 const err = new Error(message); ^
Error: Command failed: git clone [email protected]:claudioc/fastify-htmx-ts-starter-kit.git my-app at genericNodeError (node:internal/errors:983:15) at wrappedFn (node:internal/errors:537:14) at checkExecSyncError (node:child_process:890:11) at execSync (node:child_process:962:15) at main (C:\Users\vakom\AppData\Local\npm-cache_npx\0628e59d8c9150fe\node_modules\create-fastify-htmx-ts-app\bin\create.js:32:3) { status: 128, signal: null, output: [ null, null, null ], pid: 19848, stdout: null, stderr: null }
Node.js v22.9.0 npm error code 1 npm error path F:\Projects\declon\decl-fastify npm error command failed npm error command C:\WINDOWS\system32\cmd.exe /d /s /c create-fastify-htmx-ts-app my-app npm error A complete log of this run can be found in: C:\Users\vakom\AppData\Local\npm-cache_logs\2024-10-10T02_08_01_965Z-debug-0.log