Skip to content

Invalid path when searching for module #3

@jirrick

Description

@jirrick

Getting started with mongoose, got stuck on this error while trying to find 'bson-ext' module.

In method find_package_json_with_name the location = currentModule.filename; variable is set to /node_modules/require_optional/index.js.
This casues error in method find_package_json where checking (location + '/package.json') results in invalid path /node_modules/require_optional/index.js/package.json

Using Node 8.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions