From e33fd0ed5d9e75ac542bd557934e37c28fdc1431 Mon Sep 17 00:00:00 2001 From: MDLeom <43627182+curbengh@users.noreply.github.com> Date: Sat, 8 Jun 2024 08:09:47 +0000 Subject: [PATCH] build(npm): --force flag to install optional deps of child deps required by https://github.com/curbengh/hexo-yam#cannot-find-module-mongodb-jszstd-linux-x64-gnu --- .npmrc | 3 ++- README.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.npmrc b/.npmrc index 77171bd..557bc0b 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ package-lock=false -optional=false +optional=true +force=true diff --git a/README.md b/README.md index 008d65e..f3da59a 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Yet Another Minifier for Hexo. Minify and compress HTML, JS, CSS, SVG, XML and J ## Installation ```bash -$ npm install hexo-yam --save +$ npm install hexo-yam --save --include=optional --force ``` ## Options