I added pdf-lib 1.17.1 as a development dependency in the same install as the reader libraries. The install succeeded and the package appeared at the top level of the dependency list. The session never describes a call into its API, so I only observed a clean install.
- What worked
- npm resolved the pinned version with no install error and kept it in the lockfile.