Add error checking on install of apm package. Deprecate checkDependencies.