Skip to content
This repository was archived by the owner on Apr 10, 2026. It is now read-only.
This repository was archived by the owner on Apr 10, 2026. It is now read-only.

Package not installable #19

@ghost

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions