| 264 | } |
| 265 | |
| 266 | function 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 | } |