DEV Community

Ramu Narasinga
Ramu Narasinga

Posted on

Next.js Codebase Analysis <> create-next-app <> Create a local copy

Since vercel/next.js has got MIT license, it is safe to create a local copy of create-next-app package in your machine to run your experiments such as trial and error attempts, meaningful console log statements etc., to understand this package better.

Create a local copy

  • Clone the Next.js repo in your machine

git clone

  • Do not navigate to next.js folder yet, from the same terminal, create a new folder called create-next-app
  • Copy everything inside next.js/packages/create-next-app into this new folder.
  • Install the dependencies using the command npm install inside this newly created folder create-next-app

create-next-app local copy


We have seen how to create a local copy of the create-next-app package. With this setup, you can run your little experiments as you wish.

I am building a platform that explains best practices used in open source by elite programmers. Join the waitlist and I will send you the link to the tutorials once they are ready.

If you have any questions, feel free to reach out to me at

Top comments (0)