Next.js Discord

Discord Forum

npx shadcn-ui@latest add

Answered
Atlantic cod posted this in #help-forum
Open in Discord
Avatar
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
Answered by Jboncz
npx shadcn@latest add
View full answer

66 Replies

Avatar
Can you provide the order in which you installed things? Are these 'published' v0 components?
Avatar
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
Avatar
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 them
then enter
Avatar
Atlantic codOP
this ??
Image
Avatar
Umm, I think your firewall is blocking
Avatar
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
Avatar
It could've been before. Firewall might block it.
Avatar
Yeah, its possible
Avatar
I've personally faced it.
Avatar
Atlantic codOP
i've already used it to download all these
Image
it's after the skeleton command that it stopped
Avatar
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
Avatar
@Atlantic cod what happens when you visit this uri: https://ui.shadcn.com/registry/index.json
Avatar
Good call.
Avatar
Atlantic codOP
Image
this file
Avatar
Firewall seems to be blocking the terminal then
Avatar
You can do this to validate what @Anay-208 is saying
Isolating the variable from your current project completely.
Avatar
can you try using shadcn@latest on the official terminal, like cmd on windows
or powershell
Avatar
Atlantic codOP
Image
Avatar
in that project
Avatar
Atlantic codOP
it's kinda weird that i used it before and now it's not recognized
Avatar
Go to project dir
Avatar
ye your in your user folder there
Avatar
thats expected if you're not in the project dir
Avatar
Atlantic codOP
Image
Avatar
npx shadcn-ui@latest add
Avatar
delete your components.json, let it reinitialize
Avatar
Atlantic codOP
Image
Avatar
do this
Avatar
Asian black bear
👆
Avatar
Atlantic codOP
yeah doing it
Image
Avatar
its not shadcn-ui
Avatar
npx shadcn@latest add
Answer
Avatar
dont put skeleton
just do add
exactly as I provided above
Avatar
Atlantic codOP
now it shows a menu
do i select from there ?
Avatar
Just hit 'a'
Avatar
Yes
Avatar
select them all
Avatar
You got it!
Avatar
be a chad, take them all
Avatar
Atlantic codOP
ok i'll now try it
Avatar
try what????
You are done.
You got it
Avatar
Atlantic codOP
YUP DONE
Avatar
xD
Avatar
Atlantic codOP
THE ERROR HAS BEEN SOLVED
THE SKELETON WORKS
thanks for the help
Avatar
Please make sure to close this post by marking an answer
Please do that before you disapear forever 😦
Avatar
Atlantic codOP
i will come back again with new problem do not worry
Avatar
This is how you mark a solution, you can open a new post if you have another issue
Avatar
Mark this message as a solution. Right Click > Apps > Mark solution
Avatar
Close enough 😄
No big deal bud
GL with your indeavors!