test for npm existence