node-gyp-build not found

aguilet95
HOBBY

a year ago

Hello,
I was successful to build and run my app in an environment named production, so i clone it in dev without change anything and it can't build with the following error :

../node_modules/sodium-native install: sh: 1: node-gyp-build: not found

How can I manage with that ?

View Deploy details

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

Solved

3 Replies

a year ago

Have you tried adding python to your providers in the service settings?


aguilet95
HOBBY

a year ago

Have you tried adding python to your providers in the service settings?

Hi, after a lot of try, i manage to get it works with :

"engines": { "node": ">=18.0.0" }And with the following nixpacks.toml :[phases.install]

cmds = ["pnpm install node-gyp-build --save-dev","pnpm install --frozen-lockfile"]


Status changed to Solved Railway over 1 year ago


a year ago

Glad you where able to solve it!


node-gyp-build not found - Railway Help Station