Skip to content

git: 'cz' is not a git command. See 'git --help'. #289

Closed
@martinhbramwell

Description

@martinhbramwell

I 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 [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
 npm WARN deprecated [email protected]: 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 [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
 npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
 npm WARN deprecated [email protected]: 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
 └─┬ [email protected] 
   ├─┬ [email protected] 
   │ ├── [email protected] 
   │ ├── [email protected] 
   │ ├─┬ [email protected] 

       :

   ├── [email protected] 
   ├── [email protected] 
   ├── [email protected] 
   └── [email protected] 

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions