node-gyp-build not found
aguilet95
HOBBYOP

2 years 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

2 years ago

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


aguilet95
HOBBYOP

2 years 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 almost 2 years ago


2 years ago

Glad you where able to solve it!


Loading...