From d168c8d95112cc314e504caaba1e8991c8215d73 Mon Sep 17 00:00:00 2001 From: ian Date: Thu, 27 Apr 2023 02:31:25 +0800 Subject: [PATCH] Add package initialization warning (#18328) --- docs/self-hosted/cli.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/self-hosted/cli.md b/docs/self-hosted/cli.md index b657c82f3f..9891ebbb4b 100644 --- a/docs/self-hosted/cli.md +++ b/docs/self-hosted/cli.md @@ -27,6 +27,12 @@ npx directus init Will install the required database driver, and create a `.env` file based on the inputted values. +::: warning Initialize Node.js Package + +Run `npm init` if your project folder does not contain a `package.json` file. + +::: + ### Bootstrap a Project ```bash