@@ -123,7 +123,7 @@ function getJsdocOutput(src, options, done) {
123123 if ( ! fs . existsSync ( jsdocPath ) ) {
124124 throw Error ( 'jsdoc-parse: cannot find jsdoc: ' + jsdocPath ) ;
125125 }
126- var args = [ '--pedantic' , '-t' , jsdocTemplatePath ] ;
126+ var args = [ jsdocPath , '--pedantic' , '-t' , jsdocTemplatePath ] ;
127127 if ( options . html ) {
128128 args = args . concat ( [ '-c' , path . resolve ( __dirname , 'default-conf.json' ) ] ) ;
129129 } else if ( options . conf ) {
@@ -135,7 +135,7 @@ function getJsdocOutput(src, options, done) {
135135 var outputFile = fs . openSync ( outputFilePath , 'w' ) ;
136136 var outputStderrPath = tempPath ( ) ;
137137 var outputStderr = fs . openSync ( outputStderrPath , 'w' ) ;
138- var handle = cp . spawn ( jsdocPath , args , { stdio : [ process . stdin , outputFile , outputStderr ] } ) ;
138+ var handle = cp . spawn ( 'node' , args , { stdio : [ process . stdin , outputFile , outputStderr ] } ) ;
139139 handle . on ( 'error' , done ) ;
140140 handle . on ( 'close' , function ( code ) {
141141 var stderr = fs . readFileSync ( outputStderrPath , 'utf8' ) ;
0 commit comments