Skip to content

npmrc causes npm to install to home directory instead of nodeenv #165

Closed

Description

@telaviv

Here is what happened when I tried to get eslint installed:

$ pre-commit run --all-files
eslint..............................................................................................................................................................................................................................................................................................................Failed
hookid: eslint

xargs: eslint: No such file or directory

Moving .npmrc to nope.npmrc fixed the issue.

Activity

  1. asottile commented on Sep 3, 2014

    @asottile
    Member

    Here's an example npmrc causing this problem:

    prefix=~/.npm-packages
    
  2. added a commit that references this issue on Sep 4, 2014
    89205a3
  3. added a commit that references this issue on Sep 4, 2014
    a6112f4
  4. added a commit that references this issue on Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions