move withDeps before install ext deps, Fix #981
Merge pull request #984 from spmjs/with-deps

move withDeps before install ext deps, Fix #981