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