Install the latest version of npm before testing
Use pretest/posttest scripts

Because Windows PowerShell doesn’t support `&&` operator.

https://connect.microsoft.com/PowerShell/feedback/details/778798/impleme
nt-the-and-operators-that-bash-has
Use rimraf instead rm

To support various environments

https://github.com/isaacs/rimraf#cli