fixed #8. Now adding npmInstall outside afterEvaluate {} block.