Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

when I hit yarn run dev . it shows 'next' is not recognized as an internal or external command, operable program or batch file

I've installed yarn create next-app my-app. Then when I tried to run this command yarn dev It shows the error next is not recognized as an internal or external command, operable program or batch file.

Please provide the solution. I've already spent the whole day to fix this :(

like image 429
MH Antor Avatar asked Sep 03 '25 14:09

MH Antor


1 Answers

this is because your system does not have the "next npm"

follow to fix:

  1. visit your project dir
  2. open terminal
  3. hit the command npm install next
like image 141
ABHIJEET KHIRE Avatar answered Sep 05 '25 03:09

ABHIJEET KHIRE