npm Community Forum (Archive)

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

Reproduction Steps

From Git for Windows:

npm install -g yarn


Please review the proposed fix from a Git for Windows maintainer:

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â„¢.