Closed geeksilva97 closed 3 years ago
Hey, hard to reproduce this. Would you mind creating a repo with a minimal setup? We could check it out and try to understand what might be wrong.
Hey, hard to reproduce this. Would you mind creating a repo with a minimal setup? We could check it out and try to understand what might be wrong.
I'will create.
Alternatively can you check your package.json
to see what version of commitlint was installed? Node 8.17.0
is much older. We largely support Node >=10 as of commitlint v10.0.0. It might be that you need to pin to an older version of Node or try updating your version of node?
Running npm install --save-dev @commitlint/cli@9.1.2 @commitlint/config-conventional@9.1.2
using node 8.9.0 (which is all I had installed on my machine) works fine.
Can you try either upgrading node or pinning your commitlint version and let us know how it goes?
This issue is actually not related to commitlint
, but to cosmiconfig
, as pointed above, we do not support node <10 anymore,
to make it work with newer version you must upgrade your node version to >10.
Right, thanks @armano2 !
@geeksilva97 we do not support node version lower than 10 anymore.
Check node -v, Maybe you should update your node version to 14+
I am trying to add commitlint to an Ionic project. This project is in version 3.
Expected Behavior
It should works like docs.
Current Behavior
I'm getting this error when run
commitlint
command.Here is my conf file
Affected packages
Possible Solution
Steps to Reproduce (for bugs)
commitlint.config.js
```js module.exports = { extends: ['@commitlint/config-conventional'], "rules": { "header-max-length": [0], "scope-case": [0], "subject-case": [0] } } ```Context
Your Environment
commitlint --version
git --version
node --version