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

下载 node_modules 报错 #128

Open
cacalot123 opened this issue Mar 1, 2025 · 2 comments
Open

下载 node_modules 报错 #128

cacalot123 opened this issue Mar 1, 2025 · 2 comments

Comments

@cacalot123
Copy link

⠋ [npminstall:runscript] scripts.preinstall [email protected] "lefthook install", root: "/Users/chris.fu/Documents/work/外包/slash-admin"
sh: lefthook: command not found
✖ Install fail! RunScriptError: Run "sh -c lefthook install" error, exit code 127
RunScriptError: Run "sh -c lefthook install" error, exit code 127
at ChildProcess. (/usr/local/lib/node_modules/cnpm/node_modules/runscript/index.js:96:21)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1104:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5)
npminstall version: 3.28.0
npminstall args: /usr/local/bin/node /usr/local/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --fix-bug-versions --china --userconfig=/Users/chris.fu/.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npmmirror.com
下载报错。mac os 10.15.7

@iamwxq
Copy link
Contributor

iamwxq commented Mar 3, 2025

npminstall version: 3.28.0

看起来像是lefthook依赖安装失败了,试试更新一下npm

@d3george
Copy link
Owner

d3george commented Mar 3, 2025

我也没遇到过这个问题

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

No branches or pull requests

3 participants