Since you have cloned the next.js project. All the dependencies required to run an SPA project are not installed in your system. So make sure you run npm install cmd to download the dependencies, which will generate the node_modules folder. Once you see node_modules execute npm run dev