✏️ 正在编辑: get-git-path.js
路径:
/lib/node_modules/npm/lib/doctor/get-git-path.js
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
var log = require('npmlog') var which = require('which') function getGitPath (cb) { var tracker = log.newItem('getGitPath', 1) tracker.info('getGitPath', 'Finding git in your PATH') which('git', function (err, path) { tracker.finish() cb(err, path) }) } module.exports = getGitPath
💾 保存文件
← 返回文件管理器