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), {
! To load this config run:
! $ xmodmap .xmodmaprc
keycode 133 = Super_L
keycode 134 = Hyper_L
! keycode 135 = Menu
clear mod3
clear mod4
add mod3 = Super_L
add mod4 = Hyper_L
! Delete CapsLock (map to Ctrl).
clear Lock
clear Control
! keycode 66 = Caps_Lock
keysym Caps_Lock = Control_L
add Control = Control_L Control_R
keycode 94 = Mode_switch