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

This reverts commit 3c9dd6dde0f71a2ff6ba34bcaad3556c6246f5e1.