npm init

Category: Node.js & npm/yarn

npm init

Initialize a new npm project interactively, creating package.json

Creates a package.json file (the project's configuration file) by asking you a series of setup questions.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.