You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
v4.5.1 is not in the github release listv4.5.1 不在 GitHub 发布列表里
it's strange. 很奇怪。
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.
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).
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.
Activity
dosubot commentedon Dec 18, 2025
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.
zjufishboy commentedon Jan 4, 2026
DLLluoluo commentedon Jan 4, 2026
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

puckowski commentedon Jan 6, 2026
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).
matthew-dean commentedon Mar 9, 2026
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.