Question: how to do npm build?
Answer: Create an empty directory and initialize it as npm using npm init . It will ask you to construct your package. json file. If you feel lazy like me to hit enter many times, then go with shorthand script npm init --yes . Now check your directory, a package.json file gets created like this :