Skip to content

Installation fails on Node.js 18 #858

@Rugvip

Description

@Rugvip

Describe the bug
Current release is broken in Node.js 18

** Client Version **
0.17.0

** Server Version **
Any

To Reproduce
In a fresh folder, using Node.js 18 and Yarn:

$ yarn init # step through this
$ yarn add @kubernetes/client-node
yarn add v1.22.19
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning @kubernetes/client-node > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @kubernetes/client-node > request > har-validator@5.1.5: this library is no longer supported
warning @kubernetes/client-node > request > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning @kubernetes/client-node > @types/tar > @types/minipass@3.3.5: This is a stub types definition. minipass provides its own type definitions, so you do not need this installed.
[2/4] 🚚  Fetching packages...
error openid-client@5.1.8: The engine "node" is incompatible with this module. Expected version "^12.19.0 || ^14.15.0 || ^16.13.0". Got "18.4.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Expected behavior
@kubernetes/client-node can be installed when using Node.js without having to ignore engine checks.

Example Code
N/A

Environment (please complete the following information):

  • OS: MacOS
  • NodeJS Version: 18
  • Cloud runtime: N/A

Additional context
This was fixed by #837, but it is not available yet

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