Error while trying to install jsdoc-grunt-plugin #3315

Closed
avantipatil13 opened this Issue Apr 5, 2013 · 9 comments

Projects

None yet

5 participants

@avantipatil13

Error: spawn ENOENT
at errnoException (child_process.js:945:11)
at Process.ChildProcess._handle.onexit (child_process.js:736:34)

I am facing the above error when i am running the command : npm install grunt-jsdoc --save-dev

I have npm,grunt and java installed.

Please guide.

@luk-
Contributor
luk- commented Apr 8, 2013

Please provide a more detailed error log.

@avantipatil13

This is the error i am getting when ever i try to run the install command

C:\JSDOC\grunt-jsdoc-plugin-master>npm install grunt-jsdoc --save-dev
npm http GET https://registry.npmjs.org/grunt-jsdoc
npm http 304 https://registry.npmjs.org/grunt-jsdoc
npm ERR! Error: spawn ENOENT
npm ERR! at errnoException (child_process.js:945:11)
npm ERR! at Process.ChildProcess._handle.onexit (child_process.js:736:34)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install" "grunt-jsdoc" "--save-dev"
npm ERR! cwd C:\JSDOC\grunt-jsdoc-plugin-master
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! syscall spawn
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\JSDOC\grunt-jsdoc-plugin-master\npm-debug.log
npm ERR! not ok code 0

C:\JSDOC\grunt-jsdoc-plugin-master>

@domenic
Member
domenic commented Apr 8, 2013

Missing Git?

@avantipatil13

Can you please elaborate and give any link if available to explain where i am going wrong?
I am new to JSDoc.

@mfncooper
Member

The grunt-jsdoc package declares a dependency on the jsdoc3 package using a Git URL. As such, you need to have Git installed in order to install grunt-jsdoc. If you don't have Git installed, you will get the error you are seeing.

@avantipatil13

I installed GIT and am following the following document for JSDOC3

jsdoc3/jsdoc@f90f631

When i run the first command through setting the directory to nodejs, i am getting the following error

C:\jsdoc-master (1)\jsdoc-master\nodejs>npm install git://github.com/jsdoc3/jsdo
c.git
npm WARN git config --get remote.origin.url returned wrong result (git://githu
b.com/jsdoc3/jsdoc.git) undefined
npm WARN git config --get remote.origin.url returned wrong result (git://githu
b.com/jsdoc3/jsdoc.git) undefined
npm ERR! git clone git://github.com/jsdoc3/jsdoc.git undefined
npm ERR! git clone git://github.com/jsdoc3/jsdoc.git undefined
npm ERR! Error: spawn ENOENT
npm ERR! at errnoException (child_process.js:977:11)
npm ERR! at Process.ChildProcess._handle.onexit (child_process.js:768:34)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install" "git://github.com/jsdoc3/jsdo
c.git"
npm ERR! cwd C:\jsdoc-master (1)\jsdoc-master\nodejs
npm ERR! node -v v0.10.3
npm ERR! npm -v 1.2.17
npm ERR! syscall spawn
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\jsdoc-master (1)\jsdoc-master\nodejs\npm-debug.log
npm ERR! not ok code 0

@edef1c
Contributor
edef1c commented Apr 9, 2013

Git still isn't installed properly. Make sure you can run git from the command line.

@avantipatil13

I have installed GIT again, but it is not working as expected.!
do you have a tutorial kind of page?

@edef1c
Contributor
edef1c commented Apr 18, 2013

There's an option in the git for windows installer (I think the second) that lets you run git from the command line.

@domenic domenic closed this May 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment