create-t3 questions

should i have the create-t3-app installed globally? (-g)? i already have a git repo thats empty, i want to use t3 inside of it but without making a sub folder for my project when i run the command it says i dont have create-t3-app installed so i installed it but then it made a node modules inside of my root then when i ran the command to create it, it made a sub folder with another node_modules and then my app i jsut want it to be in my root any idea how i can do that
2 Replies
bruno!
bruno!2y ago
it depends on the package manager you're using, I suppose you're using npm, in this case, you should use "npx" that let you execute commands, npx create-t3-app , in this case you don't need to have create-t3-app installed to execute, if you use yarn or pnpm, just use yarn create t3-app or pnpm create t3-app if your problem is only starting the project in a folder you already have, just navigate to the folder on the cli and run npx create-t3-app . the . is specifying that the directory you want to setup is the one you are at (cwd)
Elite
EliteOP2y ago
so i dont need to install the cli. lmao i was doing that the whole time what if i want to use beta features?
pnpm create [email protected]
pnpm create [email protected]
thats for app dir
Want results from more Discord servers?
Add your server