use spawnSync in spec npm install to avoid confusing toString of null error