Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit 4ae14d4

Browse files
committed
add engine restrictions, due to a bug in node 20, that is not fixed in a released version yet: nodejs/node#47860
1 parent ba3d797 commit 4ae14d4

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# .npmrc
2+
engine-strict=true

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ The epub can be read by most ebook readers, such as Kindle.
66

77
## Installation
88

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

1112
```bash
1213
npm install -g @annadamm/scribblehub-to-epub

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
"url": "git+https://github.com/AnnaDamm/scribblehub-to-epub.git"
3434
},
3535
"license": "ISC",
36+
"engines": {
37+
"node": ">=19.0 <20.0",
38+
"npm": ">=9.0"
39+
},
3640
"dependencies": {
3741
"cheerio": "^1.0.0-rc.12",
3842
"cli-progress": "^3.11.2",

0 commit comments

Comments
 (0)