'Running into pnpm-store error when running rushx update

When running rushx update, I'm running into the following errors. I tried installing Pythong version 3.10.2 but that doesn't fix the problem.

The command failed:
 /Users/test/dev/hz/common/temp/pnpm-local/node_modules/.bin/pnpm install --store /Users/test/dev/hz/common/temp/pnpm-store --no-prefer-frozen-lockfile --strict-peer-dependencies --recursive --link-workspace-packages false
ERROR: Error: The command failed with exit code 1


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source