Create a new project folder on your computer. You can name the folder whatever you want, but do not include any spaces or capital letters. Make sure it is a new folder outside of any old repositories you have created.
Open a new Cursor window (Cmd Shift N).

Click Open project. Find the folder you just created and click open. Since the folder is empty, you should see 0 files in the left sidebar.

Open a new terminal in Cursor. Click “Terminal” in the menu bar → “New Terminal.”

Copy the following command into the terminal. This will create a new Next.js project. Next.js is a framework that makes it easy to create web apps.
npx create-next-app@latest . --typescript --eslint --use-npm --no-tailwind --app --no-src-dir --import-alias "@/*"
The terminal may prompt you to install a new package: Ok to proceed? (y). Type y into the terminal and press Return.

The next question will be: Would you like to use Turbopack for next dev? › No / Yes. Select No is underlined and press Return. To change your selection, use the arrow keys.

If you accidentally selected Yes, that’s ok! No need to restart.
Yay! Your project is now getting created. When it’s complete, it should say Success! in the terminal and you will see these files and folders in your sidebar.

Congratulations, that’s it! You’ve set up your first Next.js project.
Unlike v0, you won’t see a preview of your project by default. You’ll need to run a local server in order to see your website.
Open the Cursor chat by doing Cmd I. Type “Run my project for me.”

You will see a pop up that asks you to “Run” a couple of commands. Make sure to press Run to approve those commands. The commands should be the following:
pnpm install: This installs dependencies needed for your project to run.pnpm dev: This will run your project in a local server!Your app should be running at localhost:3000. Navigate to localhost:3000 in any browser (Chrome, Arc, etc.) to see your site.
You should see the Next.js starter project page.
