Skip to content

Commit

Permalink
npm-init: add page (#14481)
Browse files Browse the repository at this point in the history
Co-authored-by: Wiktor Perskawiec <[email protected]>
  • Loading branch information
martinblume and spageektti authored Oct 31, 2024
1 parent d749701 commit 9c99b1a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pages/common/npm-init.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 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}}`

0 comments on commit 9c99b1a

Please sign in to comment.