fix a bug that if installModule has an error, there throws an error "package_json" is undefined; fix url parsing