Skip to content

[email protected] failed to run in node.js version 14 #4395

Closed

Description

@DLLluoluo

To reproduce:

// less code here

Current behavior:
The old project we are maintaining uses version 14 of Node.js, which works fine in versions prior to [email protected] but fails in [email protected]. This is a serious problem. All third-party libraries that depend on [email protected] will fail to run in node.js version 14.

Expected behavior:
[email protected] can run normally in the node.js14 environment

Environment information:
[email protected]

  • less version: 4.5.1
  • nodejs version: v14.21.3
  • operating system:
Image

Activity

  1. dosubot commented on Dec 18, 2025

    @dosubot

    The MODULE_NOT_FOUND error for scripts/postinstall.js in [email protected] is not caused by Node.js 14 compatibility, but by a packaging issue: the scripts/postinstall.js file does not exist in the source or the published npm package. This is because [email protected] on npm is not an official release and does not correspond to any tagged commit or release in the Less.js GitHub repository, making its authenticity and safety questionable. The latest official release is 4.4.2, which does not have this problem. For Node.js 14 projects, it's safest to use 4.4.2 until an official, traceable release is published and the repository and npm package are aligned. More details are discussed in this issue.

    To reply, just mention @dosu.


    Share context across your team and agents. Try Dosu.

    Leave Feedback Learn about less.js with Dosu Add Dosu to your team

  2. zjufishboy commented on Jan 4, 2026

    @zjufishboy
  3. DLLluoluo commented on Jan 4, 2026

    @DLLluoluo
    Author

    v4.5.1 is not in the github release listv4.5.1 不在 GitHub 发布列表里

    it's strange.  很奇怪。

    Image

    It's quite strange that the npm and the less version on github are inconsistent. When the pipeline was being built, the project dependencies were downloaded based on npm, which led to the problem.

    https://www.npmjs.com/package/less?activeTab=versions
    Image

  4. puckowski commented on Jan 6, 2026

    @puckowski
    Contributor

    I'll try to assess Node 14 support sometime this week, though I am not sure for how long we plan to offer support for older LTS releases such as Node 14. CI only runs LTS-3 or newer (Node 18).

  5. matthew-dean commented on Mar 9, 2026

    @matthew-dean
    Member

    I don't think it's realistic to support a version of Node that old. Node 16 should be bare minimum, if that, because so many V8 additions / API expansions were added to Node 16 / 18.

    That said, if you want to make a PR that changes something minimally to address that, that would be welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions