MCPcopy
hub / github.com/TransformerOptimus/SuperAGI / run_npm_commands

Function run_npm_commands

run_gui.py:13–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 sys.exit(1)
12
13def run_npm_commands():
14 os.chdir("gui")
15 try:
16 subprocess.run(["npm", "install"], check=True)
17 except subprocess.CalledProcessError:
18 logger.error(f"Error during '{' '.join(sys.exc_info()[1].cmd)}'. Exiting.")
19 sys.exit(1)
20 os.chdir("..")
21
22def run_server():
23 api_process = subprocess.Popen(["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"])

Callers 1

run_gui.pyFile · 0.70

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected