-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
/Users/user/Library/pnpm/pnpm: line 16: exec: node: not found #221787
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.91.1. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
@andriustbol, it looks like your git repository has some git hooks defined that rely on |
I launch it from the dock panel or `Machintosh HD > Applications > Visual Studio Code.app
Opening Terminal in VSC after launching it and typing "husky": "8.0.3" .husky/post-checkout
But it works just fine if I open Terminal, navigate to my project dir, type |
Thanks for trying this out, and confirming this. As mentioned, the git process that is spawned by VS Code for every source control operation inherits the "environment" from VS Code, which is the "environment" in which VS Code was launched. At the moment the only solution is to launch VS Code from an "environment" where everything is initialized that is necessary for the git hooks. |
Type: Bug
Whenever trying to commit or switching between branches VSC throws this error.
Already tried suggestions from these threads, but they did not help:
VS Code version: Code 1.91.1 (Universal) (611f9bf, 2024-06-11T21:02:41.372Z)
OS version: Darwin arm64 23.4.0
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (20)
A/B Experiments
The text was updated successfully, but these errors were encountered: