mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
fix setup of mmdc, check it later.
This commit is contained in:
parent
84f55a6df7
commit
3ede3e3990
1 changed files with 4 additions and 1 deletions
5
setup.py
5
setup.py
|
|
@ -14,7 +14,10 @@ class InstallMermaidCLI(Command):
|
|||
user_options = []
|
||||
|
||||
def run(self):
|
||||
subprocess.check_call(['npm', 'install', '-g', '@mermaid-js/mermaid-cli'])
|
||||
try:
|
||||
subprocess.check_call(['sudo', 'npm', 'install', '-g', '@mermaid-js/mermaid-cli'])
|
||||
except subprocess.CalledProcessError as e:
|
||||
print(f"Error occurred: {e.output}")
|
||||
|
||||
|
||||
here = path.abspath(path.dirname(__file__))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue