"npm install" stops without error #2981

Open
niyazpk opened this Issue Dec 4, 2012 · 5 comments

3 participants

@niyazpk

Continuing from #2980, I ran npm install with the following package.json:

{
  "name": "my-project-name",
  "version": "0.1.0",
  "devDependencies": {
    "grunt": "git://github.com/gruntjs/grunt.git#1f77fef26c564fe74e0b9860f055703649156113",
    "grunt-contrib-jshint": "~0.1.0",
    "grunt-contrib-nodeunit": "~0.1.0",
    "grunt-contrib-sass": "~0.2.1",
    "grunt-contrib-uglify": "~0.1.0",
    "grunt-contrib-watch": "git://github.com/gruntjs/grunt-contrib-watch.git#6360a36871d55a7a500f86e0ddd0fb9cd08f2773"
  }
}

Here is the result:

[C:\wamp\www\b3c]npm install

[C:\wamp\www\b3c]

It waited for like 5 seconds and then ended.

@niyazpk niyazpk referenced this issue in gruntjs/grunt-contrib-watch Dec 4, 2012
Closed

jsHint not working when watching #19

@isaacs
npm member

What version of npm and node are you using?

@isaacs
npm member

Oh, nevermind, it looks like this is just the generic "git urls don't work on Windows because node can't exec batch files properly".

Still, it should be failing and creating a debug log rather than just doing nothing.

@niyazpk

node - v 0.8.15
npm - v 1.1.66

@niyazpk

I am able to reproduce this error again.

[BTW I am trying this from Git Bash and Git usually works in Git Bash shell. Also, even npm install was working till now from Git Bash.]

Tried multiple times and it just fails without any message. Strange thing is that it was working for all the the other packages I installed before this one.

Here is my current package.json: (The last line was added just now and since then it is failing.)

{
    "name": "b3c",
    "version": "0.1.1",
    "devDependencies": {
        "grunt": "git://github.com/gruntjs/grunt.git#ead4eb8f8ed778c6a637577ba812df806b455fe9",
        "grunt-contrib-jshint": "~0.1.0",
        "grunt-contrib-nodeunit": "~0.1.0",
        "grunt-contrib-sass": "~0.2.1",
        "grunt-sass": "git://github.com/sindresorhus/grunt-sass.git#c5e8ab70038c4528d7e22dd481f6316041fb1d54",
        "grunt-contrib-uglify": "git://github.com/gruntjs/grunt-contrib-uglify.git#a2ba9375441d1ba94194b2113b3731b9d399907c",
        "grunt-contrib-watch": "git://github.com/gruntjs/grunt-contrib-watch.git#808d4a32d7c4f3151a95ff02760c82fb8ede3622",
        "grunt-mocha": "git://github.com/kmiyashiro/grunt-mocha.git#58248fc03ae2335fa0930e591796fc80a3b0d497",
        "grunt-contrib-imagemin": "git://github.com/gruntjs/grunt-contrib-imagemin.git#f7a3800c6372a22c890b25e2013ae3abd33d79a0",
        "grunt-contrib-handlebars": "git://github.com/gruntjs/grunt-contrib-handlebars.git#76e9e7ccf0129d3f23c29aa000fbc1ff5ab6b756",
        "grunt-contrib-htmlmin": "git://github.com/gruntjs/grunt-contrib-htmlmin.git#6899431520cf702e34b1c888be83eb12024eec21",
        "grunt-jsdoc-plugin": "git://github.com/krampstudio/grunt-jsdoc-plugin.git#8a095df4659d126bc3f52ccb54fd84e3f0a35f5c"
    }
}

I tried removing the last line, but it is still not working. So it does not look like a problem with the particular package.

Windows Task Manager shows multiple git.exe processes being spawned and then killed after a while.

Also, in the node_modules folder the grunt-jsdoc-plugin folder is present now and it looks like the package files were downloaded as expected.

@luk-

Is this still an issue on Windows?

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