After trying to install NextJS using both methods npm install next react react-dom and npx create-next-app appname, I noticed that my project directories are different from what they are supposed to look like:
Instead of having pages, api(_app.js, index.js), public, styles, .next, node_modules, my directories consist of node_modules, yarn.lock, package.json.
Despite following multiple installation procedures, I still end up with the same project directories as mentioned above. This discrepancy makes it difficult for me to follow tutorials on NextJS. I have tried re-installing yarn and nodejs multiple times, but the issue persists.