resolving errors with apm upgrade on windows