Skip to content

Incompatibility with Node.js v16.9.1 in lru-cache v10.0.1 #32

Open
@CodeByRat

Description

@CodeByRat

Description

When using lru-cache version 10.0.1 in a FiveM server running on Node.js v16.9.1, an error is thrown indicating an incompatible Node.js version. The error message is as follows:

Error: [yarn] error lru-cache@10.0.1: The engine "node" is incompatible with this module. Expected version "14 || >=16.14". Got "16.9.1"

Steps to Reproduce

Set up a FiveM server running on Node.js v16.9.1.
Create a TypeScript project with lru-cache version 10.0.1 as a dependency.
Attempt to build or run the project.

Expected Behavior

The project should build and run without error.

Actual Behavior

The above error message is thrown, indicating an incompatible Node.js version.

Workaround

Downgrading to an earlier version of lru-cache resolved the issue. I am using 5.1.1

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