- Install Python using a web-based installer from https://www.python.org/downloads/windows/ or https://www.npmjs.com/package/windows-build-tools
- After installation, tell NPM or Yarn where the Python binary is by updating the config
- Yarn:
yarn config set python <path to Python binary>
- NPM:
npm config set python <path to Python binary>
- Yarn:
e.g. python C:\\Users\\<user>\\.windows-build-tools\\python27\\python.exe