Suddenly the build doesn't work - node-gyp
fubipod
TRIALOP

2 years ago

I didn't touch the project for month or two. After building it I am getting following errors:
16.06 …/nodemodules/isolated-vm install: gyp ERR! cwd /app/nodemodules/.pnpm/isolated-vm@4.7.2/node_modules/isolated-vm

16.06 …/node_modules/isolated-vm install: gyp ERR! node -v v22.2.0

16.06 …/node_modules/isolated-vm install: gyp ERR! node-gyp -v v9.4.1

16.06 …/node_modules/isolated-vm install: gyp ERR! not ok

16.08 …/node_modules/isolated-vm install: Failed

16.08  ELIFECYCLE  Command failed with exit code 1.

Did anything change? I tried to search here in discord.

Here is my nixpacks.toml
[phases.setup]
aptPkgs = ['build-essential', 'glibc-source']
nixPkgs = ['…', 'gcc', 'python311']
[phases.build]
cmds = ["pnpm run build:railway"]
[start]
cmd = 'pnpm run start:railway'

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

1 Replies

brody
EMPLOYEE

2 years ago

I would recommend moving to a Dockerfile based build so you aren't at the whims of nixpacks.


Loading...