npm init
Create a
package.json
file. More information: https://docs.npmjs.com/cli/commands/npm-init.
- Initialize a new package with prompts:
npm init
- Initialize a new package with default values:
npm init -y
- Initialize a new package using a specific initializer:
npm init {{create-react-app}} {{my-app}}