mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-14 15:25:17 +02:00
check mmdc via running in case of setup failed.
This commit is contained in:
parent
22fd9fd49a
commit
748ef5535a
2 changed files with 3 additions and 2 deletions
2
setup.py
2
setup.py
|
|
@ -15,7 +15,7 @@ class InstallMermaidCLI(Command):
|
|||
|
||||
def run(self):
|
||||
try:
|
||||
subprocess.check_call(['sudo', 'npm', 'install', '-g', '@mermaid-js/mermaid-cli'])
|
||||
subprocess.check_call(['npm', 'install', '-g', '@mermaid-js/mermaid-cli'])
|
||||
except subprocess.CalledProcessError as e:
|
||||
print(f"Error occurred: {e.output}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue