Closed vrrao closed 9 months ago
Thanks for reporting this we'll look to get the example dependencies updated.
Just to manage expectations though I will say that examples/s3-backup-stream.js
is an example designed to help understand usage of couchbackup APIs for that kind of use case. It should not be considered production ready code.
Regarding the other warnings you observe:
npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@cloudant/couchbackup@2.9.16', npm WARN EBADENGINE required: { node: '^18 || ^20' },
The README Requirements
for this repository state Node.js LTS version 18 or 20.
(i.e. the LTS releases of Node that are considered production stable). The EBADENGINE
warnings are npm
reflecting that, it is only a warning and will not prevent the install/use of the package if you want to try to use it in Node 21 (unless you are using npm with engine-strict: true
).
(node:10097) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.
This is a transitive dependency in the stack we use that will be resolved when updates become available. couchbackup
continues to operate normally despite this warning.
https://github.com/IBM/couchbackup/tree/main/examples has been updated and some additional documentation added.
Please read these guidelines before opening an issue.
Bug Description
https://github.com/IBM/couchbackup/blob/main/examples/s3-backup-stream.js does not work
1. Steps to reproduce and the simplest code sample possible to demonstrate the issue
This is what I did:
2. What you expected to happen
I expected the script to work and the DB to be backed up to my cos bucket
3. What actually happened
First it complained
I was told to install aws-sdk
after which I got the error
So I did
But after trying to run again I get
Environment details
vrrao@vidyas-mbp examples % node --version v21.6.0