小编Gae*_*elF的帖子

sh:哈士奇:找不到命令

我已经用 husky 设置了一个节点项目,但是当我的同事尝试npm install在他的 Mac 上运行时,他收到以下错误:

noa-be@1.0.0 prepare
husky install

sh: husky: command not found
npm ERR! code 127
npm ERR! path /Users/X/Desktop/Workspace/project
npm ERR! command failed
npm ERR! command sh -c husky install

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/X/.npm/_logs/2021-04-12T13_07_25_842Z-debug.log
Run Code Online (Sandbox Code Playgroud)

这些是相关的 package.json 部分:

noa-be@1.0.0 prepare
husky install

sh: husky: command not found
npm ERR! code 127
npm ERR! path /Users/X/Desktop/Workspace/project
npm ERR! command failed
npm ERR! command sh -c …
Run Code Online (Sandbox Code Playgroud)

git node.js npm husky git-husky

80
推荐指数
6
解决办法
14万
查看次数

标签 统计

git ×1

git-husky ×1

husky ×1

node.js ×1

npm ×1