-
Notifications
You must be signed in to change notification settings - Fork 117
Fresh mermaid install crashes #15
Comments
NPM Output
|
Maybe related to #16 |
I worked around it by copying the mermaid CSS file per the upgrade command in package.json. You have to do that and run the prepublishOnly command. Then I was able to run the dev version as |
Any updates on this or any related issue? |
Tested on Ubuntu 16.04.3 LTS: yarn global add mermaid.cli
yarn global bin # which outputs ~/.yarn/bin
cd ~/.yarn/bin
./mmdc -h
./mmdc -i flowchart.mmd -o flowchart.png Yarn doesn't install the bin to global path which I believe is yarn's bug: yarnpkg/yarn#648 |
Or you can install it locally:
Or use NPM:
|
I can confirm that it worked for me by installing it locally via yarn |
Can confirm global installation works as expected on macOS Big Sur and Ubuntu 18.04 via Might be worth removing the warning from the README.md? |
Do not install npm packages as root. See this article: https://medium.com/@ExplosionPills/dont-use-sudo-with-npm-still-66e609f5f92
|
I had to completely reinstall my ubuntu partition and as a result tried to install mermaid cli again, using these lines:
Resulting in
Node version is 8.9.0, NPM is 5.5.1
Any idea what the problem might be?
Thanks in advance!
The text was updated successfully, but these errors were encountered: