-
-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.x series fails to work in NPM scripts #602
Comments
Thanks for opening your first issue at git-cliff! Be sure to follow the issue template! ⛰️ |
Oh goodness, after a little bit of poking it turns out that it's my Node version! It failed on the version we're on at work (v18.13.0) and what I was on at home (v16.20.1 - 😱 why was I using that one at home lol) It worked with the latest v18 and the latest v21! Maybe let's pivot this bug to be that the NPM version of That's a contribution that I'd be willing and able to do myself 😁 Just need to decide what versions are supported |
Hey, thanks for reporting and looking into this!
Are you interested in providing a pull request to mention the minimum supported Node version (which is =>18) in the NPM docs? ( cc @favna for making sure about the Node version. |
I did a bit of playing with things this afternoon to find which versions worked. In an empty directory I did the following:
Here are the lowest version number that I found that worked on each of the current main Node releases:
I wouldn't mind if someone else wanted to do a quick sanity check that I got the right versions, just in case my Ubuntu machine has a weird quirk that isn't actually a true limitation on the version numbers below those I listed. My machine is quite old and sometimes breaks in silly ways because I poke at the configurations too much 😅 Given those versions I found while experimenting, should I change the |
Could've sworn I did reply something to this thread before, but I don't see any such comment anymore. Weird. Anyway, moving on. Yes, I would recommend setting the engines to those versions. |
Is there an existing issue for this?
Description of the bug
git-cliff
fails to run through an NPM script ornpx
.I thought the work done to fix #591 would have resolved my problem too, but that doesn't appear to be the case. I eagerly downloaded 2.2.1 and still ran into this 😢
I see the same issue on my Linux machine too, it just complains about a different architecture (
linux-x64
).I do see a
git-cliff-darwin-arm64
andgit-cliff-linux-x64
folders in mynode_modules
, and they both have executable inside so it's kinda weird... Not sure what's going on here.Steps To Reproduce
npx [email protected]
(although any 2.#.# version fails too)Expected behavior
git-cliff
works with NPM scriptsScreenshots / Logs
No response
Software information
Additional context
No response
The text was updated successfully, but these errors were encountered: