I tries to use npm ci with cache to speedup builds, but it fails.
I have some other projects and they works ok with --cache flag, but how to fix it here?
Steps to reproduce:
Clone this repo
Run npm ci --cache .npm --prefer-offline
And i get error:
⇏ npm ci --cache .npm --prefer-offline --ignore-scripts
npm WARN skipping integrity check for git dependency ssh://git@github.com/korenskoy/eslint-plugin-teactn.git
npm WARN skipping integrity check for git dependency ssh://git@github.com/korenskoy/emoji-data-ios.git
npm ERR! code 1
npm ERR! path C:\Users\ergoz\telegram-tt\.npm\_cacache\tmp\git-cloneSNIE0L
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c husky install
npm ERR! .git can't be found (see https://git.io/Jc3F9)
npm ERR! A complete log of this run can be found in: C:\Users\ergoz\telegram-tt\.npm\_logs\2023-06-14T16_43_34_724Z-debug-0.log
⇏ npm ci --prefer-offline
npm WARN skipping integrity check for git dependency ssh://git@github.com/korenskoy/eslint-plugin-teactn.git
npm WARN skipping integrity check for git dependency ssh://git@github.com/korenskoy/emoji-data-ios.git
npm WARN deprecated electron-osx-sign@0.6.0: Please use @electron/osx-sign moving forward. Be aware the API is slightly different
npm WARN deprecated electron-notarize@1.2.2: Please use @electron/notarize moving forward. There is no API change, just a package name change
npm WARN deprecated asar@3.2.0: Please use @electron/asar moving forward. There is no API change, just a package name change
npm WARN deprecated @types/webpack-dev-server@4.7.2: This is a stub types definition. webpack-dev-server provides its own type definitions, so you do not need this installed.
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
> telegram-t@1.61.22 postinstall
> (cd dev/eslint-multitab && npm i)
added 56 packages in 7s
95 packages are looking for funding
run `npm fund` for details
> telegram-t@1.61.22 prepare
> husky install
husky - Git hooks installed
added 1922 packages in 2m
253 packages are looking for funding
run `npm fund` for details
I tries to use npm ci with cache to speedup builds, but it fails. I have some other projects and they works ok with
--cache
flag, but how to fix it here?Steps to reproduce:
npm ci --cache .npm --prefer-offline
And i get error:
In log file i have this error:
BUT: Without
--cache
flag everything works ok: