You need a different version of npm than what is pre-installed on the Bitrise stacks.
You can use npm itself to install a new version. Add a Script Step to your Workflow with the
npm install command. In our example, we're installing npm version 7.4.0.
set -ex npm install -g email@example.com # installs NPM v7.4.0