Trying to install modules from github results in:
ENOENT error on package.json.
Easily reproduced using express:
The current top answer by Peter Lyons is not relevant with recent NPM versions. For example, using the same command that was criticized in this answer is now fine.
$ npm install https://github.com/visionmedia/express
If you have continued problems it might be a problem with whatever package you were using.