Browse Source

npm-init: add page (#14481)

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
Martin Blume 4 months ago
parent
commit
9c99b1ae26
1 changed files with 16 additions and 0 deletions
  1. 16 0
      pages/common/npm-init.md

+ 16 - 0
pages/common/npm-init.md

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