Preview:
npm config set script-shell "C:\\Program Files (x86)\\git\\bin\\bash.exe"

or (64bit installation)

npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"

Note that you need to have git bash for windows installed.

You can revert it by running:

npm config delete script-shell
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter