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•5mo ago
if i just do "npm create vite@latest" on the terminal, it creates the file on the main folder
Jochem
Jochem•5mo 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•5mo 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•5mo ago
something like this should happen
No description
Jochem
Jochem•5mo ago
or this
No description
reeee
reeeeOP•5mo ago
m i supposed to use / or \
Jochem
Jochem•5mo ago
are you on windows or linux/mac?
reeee
reeeeOP•5mo ago
windows
Jochem
Jochem•5mo ago
then \ the folders also already need to exist
reeee
reeeeOP•5mo 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•5mo ago
type some of it and then hit tab
reeee
reeeeOP•5mo ago
ohk
Jochem
Jochem•5mo ago
you go down by typing the name, you go up by typing cd .. that goes up one level
reeee
reeeeOP•5mo ago
ohh thanks for helping me out😀
Jochem
Jochem•5mo ago
glad to help!
reeee
reeeeOP•5mo ago
also how do i avoid the first folder inside the "first-tutorial" folder from being attached together
No description
reeee
reeeeOP•5mo ago
this always happens
Jochem
Jochem•5mo 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•5mo ago
ohk i will add a new post
Want results from more Discord servers?
Add your server