| 277 | } |
| 278 | |
| 279 | function 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 | } |