Skip to content

Commit

Permalink
fix setup of mmdc, check it later.
Browse files Browse the repository at this point in the history
  • Loading branch information
geekan committed Jul 3, 2023
1 parent 84f55a6 commit 3ede3e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__))
Expand Down

0 comments on commit 3ede3e3

Please sign in to comment.