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

Function fail

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

Source from the content-addressed store, hash-verified

264}
265
266function fail(reason) {
267 process.stderr.write(
268 'codegraph: no prebuilt bundle for ' + target + '.\n' +
269 (reason ? 'codegraph: ' + reason + '\n' : '') +
270 'Expected the optional package ' + pkg + ' to be installed.\n' +
271 'A registry mirror (e.g. npmmirror/cnpm) that did not mirror the per-platform\n' +
272 'package is the usual cause. Fixes:\n' +
273 ' - install from the official registry:\n' +
274 ' npm i -g @colbymchenry/codegraph --registry=https://registry.npmjs.org\n' +
275 ' - or use the standalone installer (no Node required):\n' +
276 ' curl -fsSL https://raw.githubusercontent.com/' + REPO + '/main/install.sh | sh\n'
277 );
278 process.exit(1);
279}

Callers 3

selfHealBundleFunction · 0.70
readVersionFunction · 0.70
nestedGenericRetFunction · 0.50

Calls 1

writeMethod · 0.45

Tested by 1

nestedGenericRetFunction · 0.40