Info: can't find node in PATH, trying to find a node binary on your system

解决方式

建立 ~/.huskyrc 文件,往里面塞入

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

引用

  • https://github.com/typicode/husky/issues/438#issuecomment-459189192

你可能感兴趣的:(Info: can't find node in PATH, trying to find a node binary on your system)