Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 提交代码husky报错 #5262

Open
5 tasks done
752337625 opened this issue Dec 30, 2024 · 2 comments
Open
5 tasks done

Bug: 提交代码husky报错 #5262

752337625 opened this issue Dec 30, 2024 · 2 comments

Comments

@752337625
Copy link

Version

Vben Admin V5

Describe the bug?

提交代码husky报错

git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file -
node:internal/modules/cjs/loader:1473
return process.dlopen(module, path.toNamespacedPath(filename));
^

Error: The specified module could not be found.

\?\E:\web\iot-linker-web\node_modules.pnpm@[email protected]\node_modules@ast-grep\napi-win32-x64-msvc\ast-grep-napi.win32-x64-msvc.node
at Module._extensions..node (node:internal/modules/cjs/loader:1473:18)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object. (E:\web\iot-linker-web\node_modules.pnpm@[email protected]\node_modules@ast-grep\napi\index.js:72:29)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12) {
code: 'ERR_DLOPEN_FAILED'
}

Node.js v20.10.0
husky - pre-commit script failed (code 1)

Reproduction

image

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (12) x64 12th Gen Intel(R) Core(TM) i7-1255U
    Memory: 24.48 GB / 39.69 GB
  Binaries:
    Node: 20.10.0 - D:\nodejs\node.EXE
    npm: 10.2.3 - D:\nodejs\npm.CMD
    pnpm: 9.15.1 - D:\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (131.0.2903.112)

Relevant log output

No response

Validations

@Couleur-Share
Copy link

遇到同样的问题

@anncwb
Copy link
Collaborator

anncwb commented Jan 1, 2025

有更多的信息?这个依赖只有在执行pnpm check才会使用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants