Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

npm init should look in node_modules for deps #653

Closed
isaacs opened this Issue · 4 comments

3 participants

@isaacs
Owner

.

@isaacs
Owner

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

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
Owner

@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
Collaborator

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

@mfncooper mfncooper closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.