The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
Fix generated shell scripts for MSYS2/MINGW
What I Wanted to Do
Use npm shim from Git Bash (Git for Windows)
What Happened Instead
Error: Cannot find module
From Git for Windows:
npm install -g yarn yarn
Please review the proposed fix from a Git for Windows maintainer: https://github.com/npm/cmd-shim/pull/30
Triage note: we should probably just take a look at that PR. This seems to be MSYS/MINGW-related thing, not a cygwin thing. The PR may Just Fix It™.