Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install -g mermaid does not install phantomjs #329

Closed
ssbarnea opened this issue Mar 20, 2016 · 7 comments
Closed

npm install -g mermaid does not install phantomjs #329

ssbarnea opened this issue Mar 20, 2016 · 7 comments
Labels
Type: Enhancement New feature or request

Comments

@ssbarnea
Copy link

On OS X, if you do a npm install -g mermaid, it will install (0.5.8) but when you try to run it with an imput file you will get an error complaining about Could not find phantomjs at the specified path.

Please note that this error appears only if you give a file to process. If you do just mermaid -v it will return the version without the error.

@Jmuccigr
Copy link
Contributor

Is it supposed to? I just used brew to install v. 1.98 of phatonjs.

@ssbarnea
Copy link
Author

I tried the npm install -g [email protected] which seems to be a CPU killer even on i7/16GB/SSD! -- After 3h I decided to kill it! It will never finish.
screenshot 2016-03-20 20 07 39

My impression was that the npm method was the official, multi-platform one.

I tried your approach too, but it fails too

$ brew install homebrew/versions/phantomjs198
==> Tapping homebrew/versions
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-versions'...
remote: Counting objects: 269, done.
remote: Compressing objects: 100% (251/251), done.
remote: Total 269 (delta 35), reused 74 (delta 18), pack-reused 0
Receiving objects: 100% (269/269), 309.45 KiB | 119.00 KiB/s, done.
Resolving deltas: 100% (35/35), done.
Checking connectivity... done.
Tapped 265 formulae (290 files, 1M)
==> Installing phantomjs198 from homebrew/versions
phantomjs198: This formula either does not compile or function as expected on OS X
versions newer than Yosemite due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.

@ssbarnea
Copy link
Author

Is so hard to make it work with current versions of phantomjs? I had no problem installing the current versions, only the 1.9.x seems to be the problem.

@knsv knsv added the Type: Enhancement New feature or request label Mar 22, 2016
@knsv
Copy link
Collaborator

knsv commented Mar 22, 2016

I see no reason why an upgrade should be hard!

It does seem like you have som issue with your node installation though. I have never had problems with node 1.9. I personally use nvm to install node so that it is easy to upgrade to newer node versions:

https://github.com/creationix/nvm

This should be sone however.

@ssbarnea
Copy link
Author

I should rename the bug: npm install mermaid fails as it fails to installed the required version of npm. This happens at least on mac with npm 3.6.0.

@ssbarnea
Copy link
Author

@Jmuccigr yes it is supposed to install, as any npm package, it can have dependencies, which are installed by npm whenever is needed.

@ssbarnea
Copy link
Author

I am not able to replicate the same problem with version 6.0.0 so I am closing this ticket.

mgenereu pushed a commit to mgenereu/mermaid that referenced this issue Jun 25, 2022
…yarn/develop/typescript-eslint/parser-4.30.0

chore(deps-dev): bump @typescript-eslint/parser from 4.29.2 to 4.30.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants