ci: make sure npm is installed in tests

Also update node to version 10.
14 jobs for fix-npm-in-test in 17 minutes and 23 seconds (queued for 3 seconds)