how do i create vite on a file that is inside 3 folders?

i want to create vite on a file that is inside 3 folders in my vs code, how do i do this?
19 Replies
reeee
reeeeOP•4mo ago
if i just do "npm create vite@latest" on the terminal, it creates the file on the main folder
Jochem
Jochem•4mo ago
in the terminal, you have to use the cd command to change the current folder you're working in so if you have your project in c:\mycoolprojectl terminal starts out in that folder then if you want to put your vite project in c:\mycoolproject\this\is\path, you type cd this\is\path and it will change the directory you're in to c:\mycoolproject\this\is\path it should show you the directory you're in at the start of the command prompt too you can also do cd this followed by cd is and then cd path to do it in steps
reeee
reeeeOP•4mo ago
oo let me try but after i type cd and then type the file paths nothing happens i wrote "cd folder2\folder3\folder4" on the terminal
Jochem
Jochem•4mo ago
something like this should happen
No description
Jochem
Jochem•4mo ago
or this
No description
reeee
reeeeOP•4mo ago
m i supposed to use / or \
Jochem
Jochem•4mo ago
are you on windows or linux/mac?
reeee
reeeeOP•4mo ago
windows
Jochem
Jochem•4mo ago
then \ the folders also already need to exist
reeee
reeeeOP•4mo ago
oooo it worked sometimes i misspell the file names, is there anyway to autowrite the file names? and is this a method to go directories down or up?
Jochem
Jochem•4mo ago
type some of it and then hit tab
reeee
reeeeOP•4mo ago
ohk
Jochem
Jochem•4mo ago
you go down by typing the name, you go up by typing cd .. that goes up one level
reeee
reeeeOP•4mo ago
ohh thanks for helping me out😀
Jochem
Jochem•4mo ago
glad to help!
reeee
reeeeOP•4mo ago
also how do i avoid the first folder inside the "first-tutorial" folder from being attached together
No description
reeee
reeeeOP•4mo ago
this always happens
Jochem
Jochem•4mo ago
this is a separate question, but again very quickly: that just means there's no files in the parent folder you can either add a file in there, or move the files in the child folder so that they're in the parent
reeee
reeeeOP•4mo ago
ohk i will add a new post
Want results from more Discord servers?
Add your server