Next.js Discord

Discord Forum

Error when installing shadcn

Answered
West African Lion posted this in #help-forum
Open in Discord
Avatar
West African LionOP
Got this error
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

Command failed with exit code 1: bun add tailwindcss-animate class-variance-authority lucide-react clsx tailwind-merge
'bun' is not recognized as an internal or external command,
operable program or batch file.


What's causing that?
Answered by Yi Lon Ma
bun isn't installed
View full answer

8 Replies

Avatar
bun isn't installed
Answer
Avatar
run bun --version and see what you get
Avatar
@Yi Lon Ma run `bun --version` and see what you get
Avatar
West African LionOP
bun --version
bun : The term 'bun' is not recognized as the name of a cmdlet, function, script 
file, or operable program. Check the spelling of the name, or if a path was        
included, verify that the path is correct and try again.
At line:1 char:1
+ bun --version
+ ~~~
    + CategoryInfo          : ObjectNotFound: (bun:String) [], CommandNotFoundExc  
   eption
    + FullyQualifiedErrorId : CommandNotFoundException
Avatar
yea bun isn't installed in your system
you can try other package manager like pnpm
Avatar
West African LionOP
letme try with bun
Avatar
West African LionOP
solved. Already installed with bun
ty