Beggars
Beggars
RRailway
Created by Beggars on 5/25/2023 in #✋|help
Node.js 18 and node-gyp compatibility
Howdy folks. I am loving Railway, the interface and overall experience is fantastic. I am trying to deploy an API project which uses NestJS and running into some issues with some Node packages. The first is an issue with a package I am using langchain which throws a warning because it requires Node.js 18 and above. Is there a way I can tell my Railway app to use the latest LTS version of Node? Version 16 is quite old now.
#12 1.911 npm WARN EBADENGINE Unsupported engine {
#12 1.911 npm WARN EBADENGINE package: '[email protected]',
#12 1.911 npm WARN EBADENGINE required: { node: '>=18' },
#12 1.911 npm WARN EBADENGINE current: { node: 'v16.18.1', npm: '8.19.2' }
#12 1.911 npm WARN EBADENGINE }
#12 1.911 npm WARN EBADENGINE Unsupported engine {
#12 1.911 npm WARN EBADENGINE package: '[email protected]',
#12 1.911 npm WARN EBADENGINE required: { node: '>=18' },
#12 1.911 npm WARN EBADENGINE current: { node: 'v16.18.1', npm: '8.19.2' }
#12 1.911 npm WARN EBADENGINE }
Secondly, the dreaded node-gyp error with another package.
#12 23.32 npm ERR! code 1
#12 23.32 npm ERR! path /app/node_modules/hnswlib-node
#12 23.32 npm ERR! command failed
#12 23.32 npm ERR! command sh -c -- node-gyp rebuild
#12 23.32 npm ERR! gyp info it worked if it ends with ok
#12 23.32 npm ERR! gyp info using [email protected]
#12 23.32 npm ERR! gyp info using [email protected] | linux | x64
#12 23.32 npm ERR! gyp ERR! find Python
#12 23.32 npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
#12 23.32 npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
#12 23.32 npm ERR! gyp ERR! find Python checking if "python3" can be used

#12 23.32 npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
#12 23.32 npm ERR! gyp ERR! find Python checking if "python" can be used
#12 23.32 npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
#12 23.32 npm ERR! gyp ERR! find Python
#12 23.32 npm ERR! gyp ERR! find Python **********************************************************
#12 23.32 npm ERR! gyp ERR! find Python You need to install the latest version of Python.
#12 23.32 npm ERR! code 1
#12 23.32 npm ERR! path /app/node_modules/hnswlib-node
#12 23.32 npm ERR! command failed
#12 23.32 npm ERR! command sh -c -- node-gyp rebuild
#12 23.32 npm ERR! gyp info it worked if it ends with ok
#12 23.32 npm ERR! gyp info using [email protected]
#12 23.32 npm ERR! gyp info using [email protected] | linux | x64
#12 23.32 npm ERR! gyp ERR! find Python
#12 23.32 npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
#12 23.32 npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
#12 23.32 npm ERR! gyp ERR! find Python checking if "python3" can be used

#12 23.32 npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
#12 23.32 npm ERR! gyp ERR! find Python checking if "python" can be used
#12 23.32 npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
#12 23.32 npm ERR! gyp ERR! find Python
#12 23.32 npm ERR! gyp ERR! find Python **********************************************************
#12 23.32 npm ERR! gyp ERR! find Python You need to install the latest version of Python.
These issues are preventing me from deploying my project. I would hate to have to use another platform if I can't find a solution to these issues. Thank you for your time.
108 replies