The newer versions of the Forge CLI require Node version 18.20.7, but the latest version of the Bitbucket pipeline images only provide Nod 18.20.4 or 18.20.6.
Are there any plans to update the default images to support Forge CLI again?
The newer versions of the Forge CLI require Node version 18.20.7, but the latest version of the Bitbucket pipeline images only provide Nod 18.20.4 or 18.20.6.
Are there any plans to update the default images to support Forge CLI again?
As a workaround you can build your own image:
FROM atlassian/default-image:4.20250220
# Install nvm with node and npm
ENV NODE_VERSION=20.19.0 \
NVM_DIR=/root/.nvm \
NVM_VERSION=0.40.2 \
NVM_SHA256=a909fdd01765379ebc5983674adafb8bc9de6d928bfa188761309d4a0c36be0f
RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v$NVM_VERSION/install.sh -o install_nvm.sh \
&& echo "${NVM_SHA256} install_nvm.sh" | sha256sum -c - \
&& bash install_nvm.sh \
&& rm -rf install_nvm.sh \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
# Set node path
ENV NODE_PATH=$NVM_DIR/v$NODE_VERSION/lib/node_modules
# Set the path.
ENV PATH=$NVM_DIR:$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH