Skip to content

Does not return the correct absolute path #20

@jbouhier

Description

@jbouhier

Hello @jonschlinkert,

When I use npm-check --global --update, which depends on global-modules and finally global-prefix, I've got an incorrect path error which points to ${HOME}/.npm-packages instead of the actual absolute path.

I've done a little bit of digging inside global-prefix and ${HOME}/.npm-packages seems to be returned from tryConfigPath(configPath). Looks like the value of ${HOME} is not parsed with the actual value.

I'm not sure if I should fix this here or if the cause is coming from some other component (i.e: npm-check, node or npm version...).

Here's my config:

  • Node 8.9.0
  • Npm 5.5.1

Let me know if I can do a PR to fix it 😃

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