Write or Make new npm

Hey!! I wanna know how can i make or write npm ???
Is there anyone to guide me?

(Moved to #community.)

Off the top of my head, npm and yarn and pnpm are all open source so you have three major package managers you can look at that work with the npm registry.