a year ago
I have a code like this:
result = subprocess.run(
['node', './app/services/tiktok/urlebird/hash.js', video_url],
capture_output=True, text=True
)And also such a config, in the form of a railway.json file:
{
"$schema": "https://schema.up.railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"nixpacksPlan": {
"providers": ["python"],
"phases": {
"setup": {
"nixPkgs": ["...", "nodejs"]
}
}
}
}
}But every time it comes to executing javascript code - I get this error:
Traceback (most recent call last):
File "/opt/venv/lib/python3.11/site-packages/apscheduler/executors/base_py3.py", line 30, in run_coroutine_job
retval = await job.func(*job.args, **job.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/app/services/tiktok/starter.py", line 22, in start
medias = await UrleBird().get_user_medias(user)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/app/services/tiktok/urlebird/crawler.py", line 67, in get_user_medias
result = subprocess.run(
^^^^^^^^^^^^^^^
File "/root/.nix-profile/lib/python3.11/subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.nix-profile/lib/python3.11/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/root/.nix-profile/lib/python3.11/subprocess.py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'node'I tried installing node through the site by selecting it under Providers in the settings, now tried through the config file and failed again. Please tell me what the problem is.
14 Replies
a year ago
N/A
a year ago
Why node js not installed?
a year ago
I tried this config:
[build]
builder = "nixpacks"
providers = ["python", "nodejs"]
[deploy]
startCommand = "uvicorn main:app --host \"0.0.0.0\" --port $PORT"
restartPolicyType = "never"But there is not even a hint of installing node js

a year ago
project id please
a year ago
f8cc6b6a-813b-4d34-b2f8-20c87fba3048
a year ago
what service
a year ago
instaviewApp
a year ago
send your railway.toml file please
a year ago
a year ago
turn this off please

a year ago

a year ago
🤩
a year ago
thanks bro
a year ago
no problem