add --global does not work without additional configuration
pnpm version: 7.0.0
Code to reproduce the issue:
npm install --global pnpm
pnpm add --global npm-run-all
ERROR Unable to find the global bin directory
Run "pnpm setup" to create it automatically, or set the global-bin-dir setting, or the PNPM_HOME env variable. The global bin directory should be in the PATH.
Expected behavior:
pnpm add --global <module> works correctly without additional configurations
Actual behavior:
It causes an error and needs a workaround on CI
Additional information:
##[debug] Azure DevOps
##[debug] vmImage: ubuntu-20.04
##[debug]script=npm install --global pnpm
pnpm config set store-dir /home/vsts/work/1/.pnpm-store
##[debug]pnpm -v
7.0.0
##[debug]node -v
v16.14.0