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
This commit is contained in:
MDLeom 2024-06-08 08:09:47 +00:00
parent 73db847fd4
commit e33fd0ed5d
No known key found for this signature in database
GPG Key ID: 06C236E63CBC68AA
2 changed files with 3 additions and 2 deletions

3
.npmrc
View File

@ -1,2 +1,3 @@
package-lock=false
optional=false
optional=true
force=true

View File

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