git pre-commit中npm: command not found

在pre-commit钩子中加入PATH变量解析

#!/bin/sh