MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / fail

Function fail

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

Source from the content-addressed store, hash-verified

277}
278
279function fail(reason) {
280 process.stderr.write(
281 'codegraph: no prebuilt bundle for ' + target + '.\n' +
282 (reason ? 'codegraph: ' + reason + '\n' : '') +
283 'Expected the optional package ' + pkg + ' to be installed.\n' +
284 'A registry mirror (e.g. npmmirror/cnpm) that did not mirror the per-platform\n' +
285 'package is the usual cause. Fixes:\n' +
286 ' - install from the official registry:\n' +
287 ' npm i -g @colbymchenry/codegraph --registry=https://registry.npmjs.org\n' +
288 ' - or use the standalone installer (no Node required):\n' +
289 ' curl -fsSL https://raw.githubusercontent.com/' + REPO + '/main/install.sh | sh\n'
290 );
291 process.exit(1);
292}

Callers 4

selfHealBundleFunction · 0.70
readVersionFunction · 0.70
fakeGraphFunction · 0.50
nestedGenericRetFunction · 0.50

Calls 2

exitMethod · 0.80
writeMethod · 0.65

Tested by 2

fakeGraphFunction · 0.40
nestedGenericRetFunction · 0.40