Question: how to do npm init?
Answer: On the command line, navigate to the root directory of your package. cd /path/to/package.
Run the following command: npm init --yes.