8000 npm doesn't seem to recognize that node will search parent directories · Issue #2553 · npm/npm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
npm doesn't seem to recognize that node will search parent directories #2553
Closed
@studgeek

Description

@studgeek

npm doesn't seem to recognize that node will search parent directories for node_modules as well and I'm thinking it probably should.

For example, if all the module dependencies are located in ../node_modules then node will happily run. But npm ls will complain that dependencies are not met. And npm install will install all of the same modules in ./node_modules rather than recognizing that they exist in ../mode_modules.

Doc on node's behavior is at https://github.com/joyent/node/blob/master/doc/api/modules.markdown.

An example structure that uses parent directory package.json files is at https://github.com/codeparty/derby-examples.

At the very least I think npm ls should recognize that dependencies are met by the parent node_modules even if npm install is going to reinstall them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0