1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 22:22:18 +02:00
tldr/pages/common/npm-init.md
Martin Blume 9c99b1ae26
npm-init: add page (#14481)
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2024-10-31 09:13:30 +01:00

16 lines
332 B
Markdown

# 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}}`