check mmdc via running in case of setup failed.

This commit is contained in:
geekan 2023-07-04 11:09:26 +08:00
parent 22fd9fd49a
commit 748ef5535a
2 changed files with 3 additions and 2 deletions

View file

@ -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}")