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