Skip to main content
All CollectionsKnowledge BaseBitrise infrastructure
Installing a specific npm version on Bitrise VMs
Installing a specific npm version on Bitrise VMs
Updated over 8 months ago

Issue:

You need a different version of npm than what is pre-installed on the Bitrise stacks.

Possible solutions:

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.

#!/usr/bin/env bash
set -exnpm install -g npm@7.4.0 # installs NPM v7.4.0

Additional information

Did this answer your question?