This starts your Next.js app’s "development server" (more on this later) on port 3000. Then, run the following command: npm run dev You now have a new directory called nextjs-blog. If it doesn’t work, please take a look at this page. It uses this template through the -example flag. Under the hood, this uses the tool called create-next-app, which bootstraps a Next.js app for you. To create a Next.js app, open your terminal, cd into the directory you’d like to create the app in, and run the following command: npx nextjs-blog -use-npm -example "" Windows Subsystem for Linux (WSL) is another option. If you are on Windows, we recommend downloading Git for Windows and use Git Bash that comes with it, which supports the UNIX-specific commands in this tutorial.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |