Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

create-next-app' is not recognized as an internal or external command, operable program or batch file

I'm trying to install next app with npx create-next-app nextjs-blog and i keep getting this error;

'create-next-app' is not recognized as an internal or external command, operable program or batch file.

I've been stucked since friday and haven't gotten w befitting solution, pls help out. I just started learning next js Nd I'm not sure why I'm getting this error over and over.

I've uninstalled and reinstalled my node the error still persist

like image 801
Hassan Avatar asked Dec 13 '25 19:12

Hassan


1 Answers

My issue on windows 10 was for some reason my environment variables, specifically the path user variable, had gotten many variables duplicated, exceeing the max 4096 limit without telling me. I manually deleted a bunch of duplicates and then saving it worked without the max limit reached error. I then refreshed my environment variables, closed all terminals, and then create-next-app worked.

like image 112
Bob the Builder Avatar answered Dec 16 '25 13:12

Bob the Builder



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!