Starting with npm 5.1.0you can change the shell script.
I put this line in a file .npmrcand it works:
script-shell = C:\Program Files\Git\bin\bash.exe
You can also run this command:
npm config set --userconfig script-shell "C:\\Program Files\\Git\\bin\\bash.exe"
source
share