Skip to content

Getting error when installing on node 20.0.0 #540

@sskular-wonderlab

Description

@sskular-wonderlab

Describe the Bug
When installing the package for my latest node version, 20.0.0., which became generally available on the 2023-04-18, I am getting an error message:

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'cloudevents@6.0.4',
npm WARN EBADENGINE required: { node: '>=12 <20.0.0' },
npm WARN EBADENGINE current: { node: 'v20.0.0', npm: '9.6.5' }
npm WARN EBADENGINE }

Steps to Reproduce

  1. npm i cloudevents

Expected Behavior
Package installation successfully finalises

Additional context
20.0.0 version became GA only recently, see https://github.com/cloudevents/sdk-javascript/blob/main/package.json#enroll-beta

So https://github.com/cloudevents/sdk-javascript/blob/main/package.json#enroll-beta should be updated to include 20.0.0 version once it's been verified cloudevents works with the new node version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions