mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-02 09:42:58 +00:00
22 lines
437 B
Plaintext
22 lines
437 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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|--yes]}}`
|
|
|
|
- Initialize a new package using a specific initializer:
|
|
|
|
`npm init {{create-react-app}} {{my-app}}`
|