use common.npm instead of npm.install() Also fixes the console output during test

towards fixing tests with issue #6423