cannot explicitly install a single module when a package.json has no name field #4034

Closed
KoryNunn opened this Issue Oct 24, 2013 · 1 comment

Projects

None yet

3 participants

@KoryNunn

Scenario:

{
    "dependencies": {
        "gaffa":"0.17.x",
        ...
    }
}

Doing the following:

npm i

Works.

however:

npm i gaffa

Throws errors about there not being a name field.

I can't see a functional reason why this should happen.

@timoxley
Member
timoxley commented Jan 9, 2014

@KoryNunn This appears to no longer be the case:

mkdir korynunntest && cd korynunntest
echo '{ "dependencies": { "gaffa": "0.17.x" } }' > package.json
npm i gaffa

#4430

@domenic domenic closed this Jan 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment