-
Notifications
You must be signed in to change notification settings - Fork 934
Cannot find module 'conventional-changelog-conventionalcommits' when using parserPreset #847
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
Comments
Could you try this version to see if the problem still persists? |
Hi, Thank you for your response. Something that I forgot to mention is that I had installed commitlint as follows:
Right now I first did an uninstall of these global packages and cleaned my entire local Then I executed:
And now it is working. Thank you for your help. |
However it seems that when I install the exact same packages, but globally, I receive an error:
Is this not possible? I'm trying to set up a workflow at work using a git hook which will call |
I think your NPM might be a bit confused because of |
Yes you were right. Thank you very much for your help. |
Hello again, For some reason I can't get this work any more. I'm not sure if it ever worked in the first place to be honest, I might have actually been testing it in a repository where I had local packages installed. I've been revisiting this today and I added a simple When I install this as a global package I would expect it to be able to resolve |
I tried to use Do you think this could be considered a bug in the For the moment I've decided to just install everything locally in every single repository I want to use commitlint in. |
Closing this. This seems to be a duplicate of mentioned #613. We do not need serveral issues about the issue with global installs. |
When I try to add
parserPreset
to mycommitlint.config.js
, I receive the following error:Affected packages
Steps to Reproduce (for bugs)
@commitlint/cli
,@commitlint/config-conventional
(and optionally my plugincommitlint-plugin-cleanfeet
)parserPreset: 'conventional-changelog-conventionalcommits',
is present incommitlint.config.js
echo 'chore: Stuff' | commitlint
commitlint.config.js
Your Environment
commitlint --version
git --version
node --version
The text was updated successfully, but these errors were encountered: