Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

npm init should look in node_modules for deps #653

isaacs opened this Issue Feb 25, 2011 · 4 comments


None yet
3 participants

isaacs commented Feb 25, 2011



isaacs commented Apr 7, 2011

Also, maybe the user could type a search string, and it could use npm.commands.search to search for it, and then let them pick one of the options or something.

RyanS commented Aug 24, 2011

So would this be for creating a package.json file for a service like heroku? I am looking for a command that would just create the file for me but npm init seems to ignore all of the files in node_modules/ and doesn't list them as dependencies.


isaacs commented Aug 24, 2011

@RyanS That's correct, yes. You can do npm install blah -S to save it to the package.json file, but sometimes you don't do npm init first.


mfncooper commented Feb 2, 2013

This is done, in / by init-package-json.

@mfncooper mfncooper closed this Feb 2, 2013

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