'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



Solution 1:[1]

First Install This:

npm i -g create-next-app

Then:

create-next-app

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jakub Kurdziel