Skip to content

Possible to set the global install path #630

@fortes

Description

@fortes

This is a feature (or perhaps documentation request).

When I run the following:

yarn global add create-react-app

Yarn will try to symlink into /usr/bin which requires sudo. With NPM, I've set my global packages to install into a user directory that is then added to my $PATH.

Is it possible to set a global directory via config somehow?

I've tried the following to no avail:

yarn add create-react-app -g --global-folder ~/bin (installs into ~/node_modules)
yarn global add create-react-app --global-folder ~/bin (still goes for /usr/bin)

This is all running on Debian 8.5

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