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

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

Comments

Projects
None yet
5 participants

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.

Contributor

luk- commented Apr 8, 2013

Please provide a more detailed error log.

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>

Member

domenic commented Apr 8, 2013

Missing Git?

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

Member

mfncooper commented Apr 9, 2013

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.

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

Member

edef1c commented Apr 9, 2013

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

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

Member

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 closed this May 27, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment