git: 'cz' is not a git command. See 'git --help'.
See original GitHub issueI don’t know how to deal with this.
I assumed it was simply a Path or symlink issue but got no where at all trying to understand how they work between bash
, npm
, git
and commitizen
.
install
you@trykik:~/projects/tryCommitizen$ sudo npm install commitizen -g
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
/home/you/.npm/bin/git-cz -> /home/you/.npm/lib/node_modules/commitizen/bin/git-cz
/home/you/.npm/bin/commitizen -> /home/you/.npm/lib/node_modules/commitizen/bin/commitizen
/home/you/.npm/lib
└─┬ commitizen@2.8.2
├─┬ chalk@1.1.3
│ ├── ansi-styles@2.2.1
│ ├── escape-string-regexp@1.0.5
│ ├─┬ has-ansi@2.0.0
:
├── lodash@4.11.1
├── minimist@1.2.0
├── shelljs@0.5.3
└── strip-json-comments@2.0.1
run
you@trykik:~/projects/tryCommitizen$ git cz
git: 'cz' is not a git command. See 'git --help'.
Did you mean one of these?
am
fsck
gc
mv
rm
.profile
you@trykik:~/projects/tryCommitizen$ cat ~/.profile
:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
export PATH=~/npm/bin:$PATH
.npmrc
you@trykik:~/projects/tryCommitizen$ cat ~/.npmrc
; cli configs
prefix = "~/.npm"
system
you@trykik:~/projects/tryCommitizen$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
you@trykik:~/projects/tryCommitizen$ node --version
v4.4.7
you@trykik:~/projects/tryCommitizen$ npm --version
3.10.3
you@trykik:~/projects/tryCommitizen$
Please let me know if you need more information.
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
git-cz - npm
Using --non-interactive flag you can run git-cz non-interactive mode. For example: git-cz --non-interactive --type=feat --subject="add onClick ...
Read more >Commitizen: Is there a way to override standard `git commit`?
yes you can do it with the git hooks. Just do the following as it is written on the https://commitizen.github.io/cz-cli/ site.
Read more >Git-cz - GitHub Pages
git -cz commit : Helps to make conventional commits. git-cz version : Finds out the current or next version.
Read more >Git is not a git command - Jeff Kreeftmeijer
git git status. git: 'git' is not a git command. See 'git --help'. The most similar command is init · git status. On...
Read more >git: 'cz' is not a git command. See 'git --help'. - Bountysource
git : 'cz' is not a git command. See 'git --help'. ... I don't know how to deal with this. I assumed it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had to install
commitizen
as global npm package fotgit cz
to work.If you don’t want to install
commitizen
globally you can write the write the hooks as follows: