node.js - Why isn't npm installing dependencies when I have an item inside devDependencies? -
when remove devdependencies array, trimarguments installs fine. if give dev-dependency, seems ignore trimarguments. no warning, silent failure. package.json following:
{"name":"asyncfuture", "version":"0.1.0", "main": "asyncfuture.js", "dependencies":[ "git+https://git@github.com/fresheneesz/trimarguments.git#578afe0fa6ce96797c36e018bf5bae31b508a02f" ], "devdependencies": [ "git+https://git@github.com/fresheneesz/deadunit.git#8395e438492267b94ef51ee4f94a6d6c8f1c15da" ], "repository": { "type": "git", "url": "git://github.com/fresheneesz/asyncfuture" } }
is npm bug or misunderstanding how use this? npm version 1.3.8 on windows 7 32-bit
update
it's looking npm ignoring package except last one, if put dependencies under "dependencies" array (and rid of devdependencies). has bug. i'm gonna file ticket.
when using urls dependencies:
you may specify [...] url in place of version range.
noting dependencies
are:
specified simple hash of package name version range.
you still need specify package name when using (git) url.
"dependencies": { "trimarguments": "git+https://git@github.com/fresheneesz/trimarguments.git#578afe0fa6ce96797c36e018bf5bae31b508a02f" }, "devdependencies": { "deadunit": "git+https://git@github.com/fresheneesz/deadunit.git#8395e438492267b94ef51ee4f94a6d6c8f1c15da" }
Comments
Post a Comment