(reason)
| 253 | } |
| 254 | |
| 255 | function 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 | } |
no test coverage detected