Skip to content

[FEATURE] Allow for npm linking to local prefix #533

Closed

Description

@jgehrcke

What I would like to be able to do is to install the bins defined in the package.json to the local prefix.

npm install . does not do that (related: #526).

Installing these bins seems to be usually done via npm link. npm link symlinks these bins to {prefix}/bin/{name}, where {prefix} is the global prefix. Should we add an option like --local, to change this to the local prefix?

Also see #532 (npm-link: clarify usage of global prefix)

Activity

  1. jgehrcke commented on Nov 28, 2019

    @jgehrcke
    ContributorAuthor

    Alternatively, what's a good current workaround for

    What I would like to be able to do is to install the bins defined in the package.json to the local prefix.

    ?

  2. darcyclarke commented on Jun 2, 2021

    @darcyclarke
    Contributor

    npm v6 is no longer in active development; We will continue to push security releases to v6 at our team's discretion as-per our Support Policy.

    If your bug is preproducible on v7, please re-file this issue using our new issue template.

    If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo

    Closing: This is an automated message.

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

    Enhancementnew feature or improvement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions