找不到npm-check

时间:2019-09-23 15:10:06

标签: bash

我试图在安装后执行npm-check,这给了我bash:npm-check:找不到命令。它也不适用于sudo命令。

这是我尝试确认已安装npm-check时看到的内容

npm list -g --depth 0
/Users/elopez/.npm/lib
├── n@6.0.1
├── node@12.9.1
├── npm-check@5.9.0
└── serverless@1.51.0

在我的bash个人资料中,我看到了以下内容

### There from beginning
export PATH="/usr/local/bin:$PATH"
### Added by Homebrew
export PATH=/usr/local/sbin:$PATH
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
export PATH=~/.local/bin:$PATH

parse_git_branch() {
     git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "

if [ -f `brew --prefix`/etc/bash_completion.d/git-completion.bash ]; then
  . `brew --prefix`/etc/bash_completion.d/git-completion.bash
fi

if [ -f ~/.git-completion.bash ]; then
  . ~/.git-completion.bash
fi
export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"

bash_profile有什么问题吗?我如何解决它 ?

预先感谢

0 个答案:

没有答案