Fenghe's Blog

How to use npm init command without prompt

When you type npm init, you will get the prompt like the following in the photo, sometimes not as intended. What the hell is the keyword keywords?

Don’s worry, with the option -y, you can easily initialize your folder with the default configuration.

$ npm init -y

After the process, a json will be shown to you as the following, which is the default setting.

Leave a Reply

Your email address will not be published. Required fields are marked *