Skip to content

$basedir missing on MINGW / Git Bash & cygwin #35

Closed

Description

@coolaj86

Currently any non-hashbang executable referenced by an npm "bin" will not work on Windows in Git Bash (MINGW) or Cygwin.

This issue is that for "short commands" without a hashbang, $basedir is neglected but, in fact, we still need to have $basedir set in either case.

See https://npm.community/t/globally-installed-package-does-not-execute-in-git-bash-on-windows/9394

Activity

  1. added a commit that references this issue on Aug 10, 2019
    eb8f5fb
  2. coolaj86 commented on Aug 10, 2019

    @coolaj86
    Author

    Workaround

    I created a function winpmstall that I used to monkey patch for my own project:
    https://git.rootprojects.org/root/pathman/src/branch/master/npm/scripts/fetch-prebuilt.js#L36

    (WiNPMstall being a terrible portmanteau of Windows NPM Install)

  3. added a commit that references this issue on Aug 12, 2019
  4. added a commit that references this issue on Aug 20, 2019
  5. added a commit that references this issue on Aug 21, 2019
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions