Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vitest CLI not recognized

Tags:

vite

vitest

installed pnpm add -D vitest and pnpm add -D @vitest/ui in my project dir, when i try vitest --ui, I get this error

vitest : The term 'vitest' 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.
like image 289
FeelRightz Avatar asked Jul 24 '26 23:07

FeelRightz


1 Answers

You should install the package globally using npm or yarn. Don't forget to use sudo if you are in Mac or Linux.

npm install -g vitest
like image 190
simonec_ Avatar answered Jul 28 '26 14:07

simonec_



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!