Reading the source code of npm/cli

By Prajwal Haniya

I have been using npm or yarn for a very long time now. But, I never tried to understand what happens when you run the command npm install express(OR ANY Package). So today I started exploring how this actually happens.

I am looking at the code. The code is really huge, but there are very few GitHub stars. As engineers, it is important for us to know about the tools that we are using on a regular basis. There may come a time when you have to identify a bug or give a fix. If we don’t understand our tools well then it becomes really difficult to write solutions for complex problems.