-
Notifications
You must be signed in to change notification settings - Fork 4
Open

Description
When I try to install this package, I get an error:
PS […]> npm install -D git+https://github.com/otris/node-documents-scripting.git#v7.5.0
npm ERR! code 2
npm ERR! path […]\node_modules\node-documents-scripting
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c tsc -p ./
npm ERR! ../keyv/src/index.d.ts(60,32): error TS2583: Cannot find name 'AsyncGenerator'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2018' or later.
My node version is 18.1.0.
I assume the reason is an old dependency.
I had a look, forked it and refactored one dependency away. Without this (reduce-for-promises), it works fine.
While at it, I refactored a bit more by removing needless Promises and then-chains, reducing duplicate code and updating dependencies (one of them is discontinued).
If you are open to pull-requests, you can have a look at my fork. I tried to split my changes into sensible commits: https://github.com/notmyfiles/node-documents-scripting
Metadata
Metadata
Assignees
Labels
No labels