Skip to content
johniexu edited this page Aug 14, 2023 · 5 revisions
  1. 发布 npm 包报错
npm ERR! command sh -c husky install npm ERR! sh: 1: husky: not found

参考:https://typicode.github.io/husky/guide.html#disable-husky-in-ci-docker-prod

结果:不生效 image

参考:https://github.com/typicode/husky/issues/914

改为

npm ci

生效,如果还是不生效可直接使用

npm install
Clone this wiki locally