Ako*_*s K 6 visual-studio-code
我正在处理多个 Nodejs 项目并使用nave.
在其中一个项目中,有一个预提交挂钩失败,因为我全局安装的节点是 12.6,但该项目需要 < 12.6:
\n\n> git add -A -- .\n> git commit --quiet --allow-empty-message --file - --all\nRunning commit hook for:\n - ESLint\n - Codeowners\n[2K[1A[2K[1A - ESLint\n - Codeowners\n[2K[1A[2K[1A - ESLint\n - Codeowners\n[2K[1A[2K[1A - ESLint\n - Codeowners\n[2K[1A[2K[1A - ESLint\n \xe2\x9c\x85 - Codeowners\n[2K[1A[2K[1A - ESLint\n \xe2\x9c\x85 - Codeowners\n[2K[1A[2K[1A \xe2\x9d\x8c - ESLint\n \xe2\x9c\x85 - Codeowners\n\nResults for ESLint\nyarn run v1.17.3\nwarning From Yarn 1.0 onwards, scripts don\'t require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.\nerror my-project@1.1.0: The engine "node" is incompatible with this module. Expected version ">=10.13 <12.6". Got "12.6.0"\nerror Commands cannot run with an incompatible environment.\ninfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\nRun Code Online (Sandbox Code Playgroud)\n\n有没有办法更改 vscode 或 Git 扩展使用的节点版本?
\n| 归档时间: |
|
| 查看次数: |
2307 次 |
| 最近记录: |