Skip to content

Commit

Permalink
add engine restrictions, due to a bug in node 20, that is not fixed i…
Browse files Browse the repository at this point in the history
…n a released version yet: nodejs/node#47860
  • Loading branch information
AnnaDamm committed May 18, 2023
1 parent ba3d797 commit 4ae14d4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# .npmrc
engine-strict=true
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ The epub can be read by most ebook readers, such as Kindle.

## Installation

**Attention**: This script is only tested with node 19
**Attention**: This script is only tested with node 19,
and not compatible to node 20, due to a bug in nodejs http fetch method

```bash
npm install -g @annadamm/scribblehub-to-epub
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
"url": "git+https://github.com/AnnaDamm/scribblehub-to-epub.git"
},
"license": "ISC",
"engines": {
"node": ">=19.0 <20.0",
"npm": ">=9.0"
},
"dependencies": {
"cheerio": "^1.0.0-rc.12",
"cli-progress": "^3.11.2",
Expand Down

0 comments on commit 4ae14d4

Please sign in to comment.