Replies: 2 comments 2 replies
-
I saw a thread on this and the author asked for envInfo, which is below: PS D:\Repositories\microK8s\Namespaces\Microk8s.Namespaces> npx envinfo --system --binaries System: A new project I create (visual studio) does not have this error with czg, so I think it must be project specific. |
Beta Was this translation helpful? Give feedback.
0 replies
-
{
"scripts": {
"commit": "cz"
},
"config": {
"commitizen": {
"path": "node_modules/cz-git"
}
},
"devDependencies": {
"commitizen": "^4.3.0",
"cz-git": "^1.9.1"
}
} then try the command like: npm run commit |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have installed czg, but get this error:
PS D:\Repositories\microK8s\Namespaces\Microk8s.Namespaces> czg break
[email protected]
Invalid or unexpected token
However, if I run czg, the command works and brings up options. I am trying to enable it in an existing repo.
My current package.json is:
{
"devDependencies": {
"commitizen": "^4.3.0",
"czg": "^1.9.1",
"eslint": "^8.57.0"
},
"config": {
"commitizen": {
"path": "node_modules/cz-git"
}
}
}
The "invalid or unexpected token" error implies a syntax error somewhere.
Beta Was this translation helpful? Give feedback.
All reactions