Skip to content

Node 16: DeprecationWarning #7

@kachkaev

Description

@kachkaev

👋 @tirsen thanks for the lib!

I am getting a deprecation warning in Node v16.14.2, which seems to be worth tracking:

command

npx retry-cli -- echo "hello world"

expected output

hello world

actual output

hello world
(node:32234) [DEP0128] DeprecationWarning: Invalid 'main' field in '/Users/me/.npm/_npx/21fe7c0ceac1a151/node_modules/node-getopt/package.json' of './lib'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)

Thanks again for this helpful mini-lib! I look forward to using it in CI if DeprecationWarning is fixed. Not sure if it is possible to silence it on the Node side, but I’m not very knowledgeable here to be 100% sure.

UPD

This seems to work:

export NODE_OPTIONS=--no-deprecation
npx retry-cli -- echo "hello world"

hello world

blockprotocol/blockprotocol#283

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions