From d6cb11b26e1542e90ce8b9f48657cd6c1a8a69b8 Mon Sep 17 00:00:00 2001 From: skywarth Date: Wed, 31 Jan 2024 02:47:11 +0300 Subject: [PATCH] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ae6e20..f95e158 100644 --- a/README.md +++ b/README.md @@ -268,7 +268,12 @@ See the [example workflow](#example-workflow) if you're not sure where to place ### 6.3 `package-lock.json` is not present when using `npm` as package manager preferrence. -If `package_manager` input preference is set to `npm` (or default, unassigned), it will install dependencies using `npm ci` which utilizes `package-lock.json`. In this case make sure `package-lock.json` is present in your project root. +**Error:** `The `npm ci` command can only install with an existing package-lock.json...` + +**Cause:** If `package_manager` input preference is set to `npm` (or default, unassigned), it will install dependencies using `npm ci` which utilizes `package-lock.json`. In this case make sure `package-lock.json` is present in your project root. + +**Solution:** Add your `package-lock.json` file to your project. If it's in the directory but doesn't appear in the repository, check your gitignore file and remove it from gitignore. Alternatively, you may set `yarn` as your preferred package manager for dependency installation via `package_manager` parameter input of the action. + ## 7. TODOs