Skip to content

npm global folder ~/.npm-packages triggers env.modulePath #60

@guybedford

Description

@guybedford

I'm not sure if this is a feature or a bug but it came up in jspm/jspm#1338.

The issue is that when the global npm install folder is a local user path, this is setting env.modulePath, which is normally not set when running the global version.

Let me know if I'm missing something here but perhaps liftoff can determine if the module is resolving to one of the global folders in https://nodejs.org/api/modules.html#modules_loading_from_the_global_folders and not set env.modulePath in these cases?

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