Adding nodejs to streamlit server

Hey guys, I have a streamlit app which runs with javascript and requires node. However, i have a package.txt file which has the following. How can i install node to the server

csv-parser@3.0.0
csv-writer@1.6.0
node@20.10.0
puppeteer@21.6.1

but still error

[01:23:48] :exclamation: installer returned a non-zero exit code
[01:23:48] :exclamation: Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[01:25:20] :exclamation: Streamlit server consistently failed status checks
[01:25:20] :exclamation: Please fix the errors, push an update to the git repo, or reboot the app.

I

I found this to be a fix. add this line to your requirements.txt

nodejs-bin[cmd]

Reference:
nodejs-bin · PyPI