I am trying to install an npm package to use in my streamlit app (hosted on community cloud). However, the npm command is failing.
- npm package I want to install & use as a part of my app: GitHub - softwaretechnik-berlin/dbml-renderer
- My streamlit app: kathalyst.streamlit.app
- Error Message:
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script
exec(code, module.__dict__)File "/mount/src/mvp-streamlit-local/app.py", line 21, in <module>
install_npm()File "/mount/src/mvp-streamlit-local/npm1.py", line 30, in install_npm
subprocess.run(["npm", "install", "-g", "@softwaretechnik/dbml-renderer"])File "/usr/local/lib/python3.9/subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:File "/usr/local/lib/python3.9/subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,File "/usr/local/lib/python3.9/subprocess.py", line 1837, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)