[HELP] Trying to init a shadcn/ui project, but it keeps trying to access a random folder and fails. #6753
Replies: 7 comments 6 replies
-
|
It looks like the My Music folder DOES exist, it's just one of those absolutely wonderful hidden OneDrive folders. It doesn't even show when you tick on "Show hidden files". I had to delete the My Music folder, as well as any other "My" folders via the command line. I retried the installation, and everything worked fine. I hate Windows... At least this is here for anyone running into the same problem. |
Beta Was this translation helpful? Give feedback.
-
|
Yeah Windows is weird. |
Beta Was this translation helpful? Give feedback.
-
|
this is actually crazy.. why is the init command looking for access anywhere outside its current directory at all? |
Beta Was this translation helpful? Give feedback.
-
|
On windows, this may happen. It is related with the running process (it's just like, hey, this folder/program is currently being used by a running process). So close the folder, your coding editor and terminal where that path is accessed. |
Beta Was this translation helpful? Give feedback.
-
|
Reopened because this seems to still be helpful |
Beta Was this translation helpful? Give feedback.
-
|
i tried closing all opened project and it work for me |
Beta Was this translation helpful? Give feedback.
-
|
OS: Windows 11 First time: Second time: |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
I don't see what I'm doing wrong. I open CMD as Administrator in the folder
C:\Users\Administrator\Documents\project, and then I runnpx shadcn@latest init.The process goes smoothly, until it asks for my base color choice. After selecting a color, it immediately fails because it's trying to access
C:\Users\Administrator\Documents\My Musicwhich is a completely random and nonexistent folder and it's outside of the directory I'm running from.Here's a copy-paste from the command line if that helps any:
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions