Open ameenrsherali opened 1 day ago
even we have faced the same error.
Hey, could you please submit a repo where this happens? Thanks
[INFO] Installing environment for https://github.com/alessandrojcm/commitlint-pre-commit-hook.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/root/.cache/pre-commit/repowsykjq0q/node_env-default/bin/node', '/root/.cache/pre-commit/repowsykjq0q/node_env-default/bin/npm', 'pack')
return code: 254
stdout: (none)
stderr:
(node:14333) ExperimentalWarning: Support for loading ES Module in require() is an experimental feature and might change at any time
(Use node --trace-warnings ...
to show where the warning was created)
npm warn tarball tarball data for file:/root/.cache/pre-commit/repowsykjq0q/ (null) seems to be corrupted. Trying again.
npm warn tarball tarball data for file:/root/.cache/pre-commit/repowsykjq0q/ (null) seems to be corrupted. Trying again.
npm error code ENOENT
npm error syscall lstat
npm error path /root/.cache/pre-commit/repowsykjq0q/ode_env-default/lib/node_modules/npm/node_modules/sprintf-js/dist/.gitattributes
npm error errno -2
npm error enoent ENOENT: no such file or directory, lstat '/root/.cache/pre-commit/repowsykjq0q/ode_env-default/lib/node_modules/npm/node_modules/sprintf-js/dist/.gitattributes'
npm error enoent This is related to npm not being able to find a file.
npm error enoent
npm error A complete log of this run can be found in: /root/.npm/_logs/2024-10-17T10_51_00_842Z-debug-0.log
Check the log at /root/.cache/pre-commit/pre-commit.log
Sorry but I meant a git repository that I can clone so I can debug the issue.
We have this repo being invoked from pipeline existing which is present within a private repo.
Ok gotcha, could you please then paste your pre-commit and commitlint config files?:
exclude: "^$" fail_fast: false repos:
0 verbose cli /root/.cache/pre-commit/repok81ok20m/node_env-default/bin/node /root/.cache/pre-commit/repok81ok20m/node_env-default/bin/npm 1 info using npm@10.9.0 2 info using node@v23.0.0 3 silly config load:file:/root/.cache/pre-commit/repok81ok20m/node_env-default/lib/node_modules/npm/npmrc 4 silly config load:file:/root/.cache/pre-commit/repok81ok20m/.npmrc 5 silly config load:file:/root/.npmrc 6 silly config load:file:/root/.cache/pre-commit/repok81ok20m/node_env-default/etc/npmrc 7 verbose title npm pack 8 verbose argv "pack" 9 verbose logfile logs-max:10 dir:/root/.npm/_logs/2024-10-17T14_20_19_061Z- 10 verbose logfile /root/.npm/_logs/2024-10-17T14_20_19_061Z-debug-0.log 11 silly logfile start cleaning logs, removing 1 files 12 silly logfile done cleaning log files 13 silly packumentCache heap:2197815296 maxSize:549453824 maxEntrySize:274726912 14 warn tarball tarball data for file:/root/.cache/pre-commit/repok81ok20m/ (null) seems to be corrupted. Trying again. 15 warn tarball tarball data for file:/root/.cache/pre-commit/repok81ok20m/ (null) seems to be corrupted. Trying again. 16 verbose stack Error: ENOENT: no such file or directory, lstat '/root/.cache/pre-commit/repok81ok20m/ode_env-default/lib/node_modules/npm/node_modules/sprintf-js/dist/.gitattributes' 17 error code ENOENT 18 error syscall lstat 19 error path /root/.cache/pre-commit/repok81ok20m/ode_env-default/lib/node_modules/npm/node_modules/sprintf-js/dist/.gitattributes 20 error errno -2 21 error enoent ENOENT: no such file or directory, lstat '/root/.cache/pre-commit/repok81ok20m/ode_env-default/lib/node_modules/npm/node_modules/sprintf-js/dist/.gitattributes' 22 error enoent This is related to npm not being able to find a file. 22 error enoent 23 verbose cwd /root/.cache/pre-commit/repok81ok20m 24 verbose os Linux 6.5.0-1025-azure 25 verbose node v23.0.0 26 verbose npm v10.9.0 27 verbose exit -2 28 verbose code -2 29 error A complete log of this run can be found in: /root/.npm/_logs/2024-10-17T14_20_19_061Z-debug-0.log
Running into the below issue with the commitlint-pre-commit-hook:
[INFO] Installing environment for https://github.com/alessandrojcm/commitlint-pre-commit-hook. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... An unexpected error has occurred: CalledProcessError: command: ('/home/vscode/.cache/pre-commit/repoz1f94nsb/node_env-default/bin/node', '/home/vscode/.cache/pre-commit/repoz1f94nsb/node_env-default/bin/npm', 'pack') return code: 254 stdout: (none) stderr: (node:2699) ExperimentalWarning: Support for loading ES Module in require() is an experimental feature and might change at any time (Use
node --trace-warnings ...
to show where the warning was created) npm warn tarball tarball data for file:/home/vscode/.cache/pre-commit/repoz1f94nsb/ (null) seems to be corrupted. Trying again. npm warn tarball tarball data for file:/home/vscode/.cache/pre-commit/repoz1f94nsb/ (null) seems to be corrupted. Trying again. npm error code ENOENT npm error syscall lstat npm error path /home/vscode/.cache/pre-commit/repoz1f94nsb/ode_env-default/lib/node_modules/npm/node_modules/sprintf-js/dist/.gitattributes npm error errno -2 npm error enoent ENOENT: no such file or directory, lstat '/home/vscode/.cache/pre-commit/repoz1f94nsb/ode_env-default/lib/node_modules/npm/node_modules/sprintf-js/dist/.gitattributes' npm error enoent This is related to npm not being able to find a file. npm error enoent npm error A complete log of this run can be found in: /home/vscode/.npm/_logs/2024-10-16T17_40_56_462Z-debug-0.log