Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
self
/
root
/
opt
/
nodejs-18
/
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
@npmcli
/
git
/
lib
/
//proc/self/root/opt/nodejs-18/usr/lib/node_modules/npm/node_modules/@npmcli/git/lib/which.js
const which = require('which') let gitPath try { gitPath = which.sync('git') } catch { // ignore errors } module.exports = (opts = {}) => { if (opts.git) { return opts.git } if (!gitPath || opts.git === false) { return Object.assign(new Error('No git binary found in $PATH'), { code: 'ENOGIT' }) } return gitPath }