Added precompile hook to install npm before compile scala project