npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/zi/Documents/mycode/bill-management/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/zi/Documents/mycode/bill-management/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/zi/.npm/_logs/2021-02-16T10_21_12_456Z-debug.log
husky - pre-commit hook exited with code 254 (error)
首先安装依赖,执行 yarn install 时报错无法找到.git文件夹,通过husky官方文档在
package.json
文件中修改postinstall参数解决无法安装,但是当我通过git add --all && git commit -m "message"
将代码推送致git仓库时出现一下错误