isaacs/npm — Issue #2063: Circular dependencies with top-level package
Author: medikoo
Created: 2012-01-19 16:40:27+00:00
State: open

Package __A__ depends on package __B__ and package __B__ depends on package __A__.

When I do `npm install` in folder of package __A__, npm installs __B__ into _A/node_modules_ but won't install __A__ into _A/node_modules/B/node_modules_. Seems logical at first, however if __A__ is my top-level package not placed in any _node_modules_ folder then it will not run as __B__ won't see __A__ (e.g. Travis CI - crashes tests for packages with such dependencies).

Is this npm bug or is there any known resolution for that ?