husky在jenkins打包找不到.git文件?-灵析社区

UX_siri

* cd project * pnpm install Scope: all 8 workspace projects Lockfile is up to date, resolution step is skipped Already up to date . postinstall$ turbo run stub . postinstall: • Packages in scope: @vben/eslint-config, @vben/hooks, @vben/stylelint-config, @vben/ts-config, @vben/types, @vben/vite-config, server . postinstall: • Running stub in 7 packages . postinstall: • Remote caching disabled . postinstall: @vben/vite-config:stub: cache hit, replaying logs aee9b5a8a56482ca . postinstall: @vben/vite-config:stub: . postinstall: @vben/vite-config:stub: > @vben/vite-config@1.0.0 stub /var/lib/jenkins/workspace/data_assets_back/data_assets_web/internal/vite-config . postinstall: @vben/vite-config:stub: > pnpm unbuild --stub . postinstall: @vben/vite-config:stub: . postinstall: @vben/vite-config:stub: [info] Stubbing @vben/vite-config . postinstall: @vben/stylelint-config:stub: cache hit, replaying logs 452987acea040030 . postinstall: @vben/stylelint-config:stub: . postinstall: @vben/stylelint-config:stub: > @vben/stylelint-config@1.0.0 stub /var/lib/jenkins/workspace/data_assets_back/data_assets_web/internal/stylelint-config . postinstall: @vben/stylelint-config:stub: > pnpm unbuild --stub . postinstall: @vben/stylelint-config:stub: . postinstall: @vben/stylelint-config:stub: [info] Stubbing @vben/stylelint-config . postinstall: @vben/eslint-config:stub: cache hit, replaying logs 9bd54888982ea3f7 . postinstall: @vben/eslint-config:stub: . postinstall: @vben/eslint-config:stub: > @vben/eslint-config@1.0.0 stub /var/lib/jenkins/workspace/data_assets_back/data_assets_web/internal/eslint-config . postinstall: @vben/eslint-config:stub: > pnpm unbuild --stub . postinstall: @vben/eslint-config:stub: . postinstall: @vben/eslint-config:stub: [info] Stubbing @vben/eslint-config . postinstall: Tasks: 3 successful, 3 total . postinstall: Cached: 3 cached, 3 total . postinstall: Time: 314ms >>> FULL TURBO . postinstall: Done . prepare$ husky install . prepare: husky - .git can't be found (see [https://typicode.github.io/husky/#/?id=custom-directory](https://link.segmentfault.com/?enc=S%2FCfzPhaZfi8Be5crX13cw%3D%3D.0tXZrte4tfT5UgQA10tq57xzgIMB3Ik0kUo0STtaOA4hue74Zyf5uDapqFgsiA0gmbip0Pkr9irCyf7nHA4KpQ%3D%3D)) . prepare: Failed ELIFECYCLE Command failed with exit code 1.

阅读量:20

点赞量:0

问AI
你可以尝试一下更新nodejs 版本 这是在他们的网站Node.js (>=14.19.0 or >=16.9.0),如果没在这个范围可以考虑更新一下