node-gyp: command not found
achaconm2001
PROOP

2 months ago

I'm getting this error consistently when installing deps. I'm not to sure if this is a Bun issue or a Railway issue, so feel to close. This is the service id: 3b701816-cc8b-4b04-8559-9acfee15b9fd

bun install --frozen-lockfile
bun install v1.3.4 (5eb2145b)
/usr/bin/bash: line 1: node-gyp: command not found
error: install script from "cpu-features" exited with 127

$10 Bounty

3 Replies

reece
PRO

2 months ago

it's trying to install a node.js native addon, which isn't compatible with bun


reece
PRO

2 months ago

it might be that it's not used at runtime, but it's still in the dependency tree


reece
PRO

2 months ago

so you'll likely need to have both node.js and bun installed


Loading...