Skip to content

Cross-platform way to add to PATH #32

@seanmonstar

Description

@seanmonstar

I'm sure part of this should be fixed in node core, but they're just sitting on the issue (nodejs/node-v0.x-archive#3728).

PATH uses : on *nix, and ; on Windows. It could either provide just the separator, or provide some sort of push method.

Example:

shell.PATH.push('../node_modules/.bin');
// or
shell.env.PATH += shell.sep + '../node_modules/.bin';

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