Added workaround for Cygwin, npm authors explicitly forbids it:
npm/lib/commands/completion.js
if (isWindowsShell) {
const msg = 'npm completion supported only in MINGW / Git bash on Windows'
throw Object.assign(new Error(msg), {
# See: man 5 gitignore.
*.a
*.elc
*.exe
*.dll
*.ocx
*.lib
*.o
*.obj
*.py[co]
*.so
*.class
*.jar
*.war
# MSVC ActiveX/COM artefact:
# *_i.c
# *_p.c
# MSVC project files:
*.sln
*.sln.cache
*.ncb
*.vcproj
*.vcproj.*.user
# MSVC precompiled header:
*.pch
# MSVC program database file:
*.pdb
# MSVC type library:
*.tlb
# MSVC build dirs:
[Dd]ebug/
[Rr]elease/
[Oo]bj/
*~