mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 22:22:18 +02:00
16 lines
332 B
Markdown
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}}`
|