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
fix npm#35: always set $basedir for win32 bash
coolaj86 commentedon Aug 10, 2019
Workaround
I created a function
winpmstallthat 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)
cmd-shim@2.1.0
deps: update npm to 6.11.0
deps: update npm to 6.11.1