Commands.app

npm init

Project Setup

Create a package.json file

Options & Flags
Available options for this command
-y

Accept all defaults

Examples
Common usage examples

Initialize project interactively

npm init

Initialize with defaults

npm init -y