8

I am trying to use MaDGe to Save dependency graph as a SVG image with CLI command

madge --image graph.svg path/src/app.js

but I face the error 'gvpr' is not recognized as an internal or external command

this is where I have C:\Program Files (x86)\Graphviz2.38\bin in my PATH.

I also tried adding the PATH in both user and system variables but still the same issue

Amir-Mousavi
  • 4,273
  • 12
  • 70
  • 123

2 Answers2

3

in windows the executable file is called "dot.exe", I had the same issue as you and fixed it by copying & renaming "dot.exe" to "gvpr.exe" in the /bin/folder

works fine now for me.

enter image description here

Charles
  • 405
  • 4
  • 13
1

try to use madge command by windows command propmt (not git bash or something like that) it's worked for me

1SaeedSalehi
  • 364
  • 1
  • 8
  • 16