npx shadcn-ui@latest add
Answered
Atlantic cod posted this in #help-forum
Atlantic codOP
so i was using this command and it just stopped working, i had already installed button and drop down menu from it but when i tried to install skeleton with this it stopped working, and now it does not install anything at all
first it showed the error of shadcn not a command and now it shows somthing like this
Invald configuration found in E:\Projects\notion-clone/components.json
the components file is correct i've check and re-checked it
@Jboncz
first it showed the error of shadcn not a command and now it shows somthing like this
Invald configuration found in E:\Projects\notion-clone/components.json
the components file is correct i've check and re-checked it
@Jboncz
66 Replies
Can you provide the order in which you installed things? Are these 'published' v0 components?
Atlantic codOP
i'm new to NEXT and it's my first project which i am following from youtube, but can't really find a solution of it, if it's okay can you please break it down to simple terms like where do i find this v0
Oh okay, sorry I assumed you were using it apologies. I would do the following
npx shadcn@latest add
then simply hit a
and it will select all of themthen
enter
Atlantic codOP
this ??
Umm, I think your firewall is blocking
Hrmmmm. It sounds like you have fubar'd something 😅
They said they did it once succesfully.
Unless your working in a business environment, would be weird for something to get auto blocked
It could've been before. Firewall might block it.
Yeah, its possible
I've personally faced it.
Atlantic codOP
i've already used it to download all these
it's after the skeleton command that it stopped
Yeah... its just really hard to tell what that error is indicating. Can you try spining up a new project just for testing and use
npx create-next-app@latest
then run npx shadcn@latest add
then simply hit a
and it will select all of them then enter
@Atlantic cod what happens when you visit this uri: https://ui.shadcn.com/registry/index.json
Good call.
Atlantic codOP
this file
Firewall seems to be blocking the terminal then
You can do this to validate what @Anay-208 is saying
Isolating the variable from your current project completely.
can you try using shadcn@latest on the official terminal, like cmd on windows
or powershell
Atlantic codOP
in that project
Atlantic codOP
it's kinda weird that i used it before and now it's not recognized
Go to project dir
ye your in your user folder there
thats expected if you're not in the project dir
Atlantic codOP
npx shadcn-ui@latest add
delete your components.json, let it reinitialize
Atlantic codOP
do this
Asian black bear
👆
Atlantic codOP
yeah doing it
its not shadcn-ui
npx shadcn@latest add
Answer
Atlantic codOP
now it shows a menu
do i select from there ?
Just hit 'a'
Yes
select them all
You got it!
be a chad, take them all
Atlantic codOP
ok i'll now try it
Atlantic codOP
YUP DONE
xD
Atlantic codOP
THE ERROR HAS BEEN SOLVED
THE SKELETON WORKS
THE SKELETON WORKS
thanks for the help
Please make sure to close this post by marking an answer
Please do that before you disapear forever 😦
Atlantic codOP
i will come back again with new problem do not worry
This is how you mark a solution, you can open a new post if you have another issue
Mark this message as a solution. Right Click > Apps > Mark solution