npm-init: add page (#14481)

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
Martin Blume
2024-10-31 09:13:30 +01:00
committed by GitHub
parent d74970154c
commit 9c99b1ae26

16
pages/common/npm-init.md Normal file
View File

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