The question is not "how?", but "why?"
"designed to install PureScript, a programming language that compiles to JavaScript, on the user's system using the npm command line interface. It gets used about 2,000 times a week."
It's muppets all the way down.