Description
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