MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / fail

Function fail

scripts/npm-shim.js:255–268  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

253}
254
255function fail(reason) {
256 process.stderr.write(
257 'codegraph: no prebuilt bundle for ' + target + '.\n' +
258 (reason ? 'codegraph: ' + reason + '\n' : '') +
259 'Expected the optional package ' + pkg + ' to be installed.\n' +
260 'A registry mirror (e.g. npmmirror/cnpm) that did not mirror the per-platform\n' +
261 'package is the usual cause. Fixes:\n' +
262 ' - install from the official registry:\n' +
263 ' npm i -g @colbymchenry/codegraph --registry=https://registry.npmjs.org\n' +
264 ' - or use the standalone installer (no Node required):\n' +
265 ' curl -fsSL https://raw.githubusercontent.com/' + REPO + '/main/install.sh | sh\n'
266 );
267 process.exit(1);
268}

Callers 2

selfHealBundleFunction · 0.70
readVersionFunction · 0.70

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected