nodejs / help

:sparkles: Need help with Node.js? File an Issue here. :rocket:
1.44k stars 276 forks source link

Nodejs and git #4426

Closed kaaya-27 closed 1 week ago

kaaya-27 commented 1 week ago

Version

v20.15.0

Platform

Windows 11

Subsystem

esbuild

What steps will reproduce the bug?

Screenshot 2024-06-25 123538

How often does it reproduce? Is there a required condition?

after installing nodejs i cannot create npm or download dependencies from npm it does not allow me to create new react app.

What is the expected behavior? Why is that the expected behavior?

Screenshot 2024-06-25 123538

What do you see instead?

npm error code ENOENT npm error syscall spawn C:\Program Files\Git\cmd npm error path C:\website\youtube-clone-react\node_modules\esbuild npm error errno -4058 npm error enoent spawn C:\Program Files\Git\cmd ENOENT 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: C:\Users\kaviy\AppData\Local\npm-cache_logs\2024-06-25T07_20_28_330Z-debug-0.log

Additional information

No response

marco-ippolito commented 1 week ago

duplicate of https://github.com/nodejs/node/issues/53538

VoltrexKeyva commented 1 week ago

@marco-ippolito I don't think this is a duplicate of that issue, this just means Git wasn't found on the user's machine which isn't similar to that issue.

VoltrexKeyva commented 1 week ago

The error means that one of your dependencies require Git but it isn't installed on your system, you can install Git from here.

And since this issue doesn't have anything to do with Node.js itself I'll move this to the help repository.