Windows OS: Error: Error: not found: dot
shanmugamm opened this issue · 1 comments
I am trying to generate the diagram for ui-router.js file in windows machine
I have setup the node.js
i have setup the Grunt
installed the dependent package
npm install grunt-angular-architecture-graph --save-dev
npm install grunt-graphviz --save-dev
package.json file
{ "name": "helloworld", "version": "0.1.0", "devDependencies": { "grunt": "^0.4.5", "grunt-angular-architecture-graph": "^0.2.6", "grunt-contrib-clean": "^1.0.0", "grunt-graphviz": "^0.1.1" } }
Gruntfile.js
'use strict';
module.exports = function(grunt){
grunt.initConfig({
pkg:grunt.file.readJSON('package.json'),
angular_architecture_graph: {
diagram: {
files: {
// "PATH/TO/OUTPUT/FILES": ["PATH/TO/YOUR/FILES/*.js"]
"c:/GruntTest/architecture": [
"c:/GruntTest/ui-router.js"
]
}
}
}
});
grunt.loadNpmTasks("grunt-angular-architecture-graph");
grunt.registerTask("default",['angular_architecture_graph']);
};
Result
Initializing
Command-line options: --verbose
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Reading package.json...OK
Parsing package.json...OK
Initializing config...OK
Registering "grunt-angular-architecture-graph" local Npm module tasks.
Reading C:\GruntTest\node_modules\grunt-angular-architecture-graph\package.json...OK
Parsing C:\GruntTest\node_modules\grunt-angular-architecture-graph\package.json...OK
Registering "grunt-graphviz" local Npm module tasks.
Reading C:\GruntTest\node_modules\grunt-graphviz\package.json...OK
Parsing C:\GruntTest\node_modules\grunt-graphviz\package.json...OK
Loading "graphviz.js" tasks...OK
- graphviz
Reading node_modules/grunt-angular-architecture-graph/templates/legend.def...OK
Reading node_modules/grunt-angular-architecture-graph/templates/all.def...OK
Reading node_modules/grunt-angular-architecture-graph/templates/modules.def...OK
Reading node_modules/grunt-angular-architecture-graph/templates/module.def...OK
Loading "angular_architecture_graph.js" tasks...OK - angular_architecture_graph
Registering "grunt-graphviz" local Npm module tasks.
Reading C:\GruntTest\node_modules\grunt-graphviz\package.json...OK
Parsing C:\GruntTest\node_modules\grunt-graphviz\package.json...OK
Loading "graphviz.js" tasks...OK
- graphviz
Reading node_modules/grunt-angular-architecture-graph/templates/legend.def...OK
Reading node_modules/grunt-angular-architecture-graph/templates/all.def...OK
Reading node_modules/grunt-angular-architecture-graph/templates/modules.def...OK
Reading node_modules/grunt-angular-architecture-graph/templates/module.def...OK
Loading "helpers.js" tasks...OKNo tasks were registered or unregistered.
Loading "Gruntfile.js" tasks...OK - default
Running tasks: default
Running "default" task
Running "angular_architecture_graph" task
Running "angular_architecture_graph:diagram" (angular_architecture_graph) task
Verifying property angular_architecture_graph.diagram exists in config...OK
Files: c:/GruntTest/ui-router.js -> c:/GruntTest/architecture
Options: hideAngularServices, shapeModules="component", shapeFactories="ellipse", shapeDirectives="cds", colorScheme="paired12"
Reading c:/GruntTest/ui-router.js...OK
Writing c:/GruntTest/architecture/dot/legend.dot...OK
Writing c:/GruntTest/architecture/dot/all.dot...OK
Writing c:/GruntTest/architecture/dot/modules.dot...OK
Writing c:/GruntTest/architecture/dot/modules/ui.router.util.dot...OK
Writing c:/GruntTest/architecture/dot/modules/ui.router.router.dot...OK
Writing c:/GruntTest/architecture/dot/modules/ui.router.state.dot...OK
Writing c:/GruntTest/architecture/dot/modules/ui.router.dot...OK
Writing c:/GruntTest/architecture/dot/modules/ui.router.compat.dot...OK
Running "graphviz" task
Running "graphviz:target" (graphviz) task
Verifying property graphviz.target exists in config...OK
Files: c:/GruntTest/architecture/dot/all.dot -> c:/GruntTest/architecture/png/all.png
Files: c:/GruntTest/architecture/dot/legend.dot -> c:/GruntTest/architecture/png/legend.png
Files: c:/GruntTest/architecture/dot/modules.dot -> c:/GruntTest/architecture/png/modules.png
Files: c:/GruntTest/architecture/dot/modules/ui.router.compat.dot -> c:/GruntTest/architecture/png/modules/ui.router.compat.png
Files: c:/GruntTest/architecture/dot/modules/ui.router.dot -> c:/GruntTest/architecture/png/modules/ui.router.png
Files: c:/GruntTest/architecture/dot/modules/ui.router.router.dot -> c:/GruntTest/architecture/png/modules/ui.router.router.png
Files: c:/GruntTest/architecture/dot/modules/ui.router.state.dot -> c:/GruntTest/architecture/png/modules/ui.router.state.png
Files: c:/GruntTest/architecture/dot/modules/ui.router.util.dot -> c:/GruntTest/architecture/png/modules/ui.router.util.png
Options: (none)
Options: (none)
Error: Error: not found: dot
Error: Error: not found: dot
Error: Error: not found: dot
Error: Error: not found: dot
Error: Error: not found: dot
Error: Error: not found: dot
Error: Error: not found: dot
Error: Error: not found: dot
Could you help on this?
I am guessing you dont have Graphviz in your PATH
. You can follow this on Windows:
- Unpack (or install) Graphviz. Latest at the time of this post can be downloaded here.
- Lets say you unpacked or installed in the directory
D:\graphviz\
, then add;D:\graphviz\bin
to your PATH environment variable
It may probably work now. Hope this helps.