🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-14 16:55:42 | PHP 8.1.34
📂
/ (Root)
/
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
@npmcli
/
git
/
lib
📍 /usr/lib/node_modules/npm/node_modules/@npmcli/git/lib
🔄 Refresh
✏️
Editing: which.js
Read Only
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 }
💾 Save Changes
❌ Cancel