Skip to content

Commit

Permalink
run npm config fix for node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
yousif-bugsnag committed Jan 19, 2024
1 parent 20bb936 commit 25531ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dockerfiles/Dockerfile.react-native-android-builder
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ARG JAVA_VERSION
ENV JAVA_HOME=/usr/local/openjdk-${JAVA_VERSION}

ARG NODE_VERSION
ENV NODE_VERSION=$NODE_VERSION
RUN curl -sL https://deb.nodesource.com/setup_$NODE_VERSION.x | bash -
RUN apt-get install -y nodejs rsync

Expand All @@ -21,7 +22,9 @@ RUN echo "registry=$REGISTRY_URL" >> ~/.npmrc
RUN echo "_auth=$REG_BASIC_CREDENTIAL" >> ~/.npmrc
RUN echo "email=$REG_NPM_EMAIL" >> ~/.npmrc
RUN echo "always-auth=true" >> ~/.npmrc
RUN npm config fix

# fix npm auth config for node 18
RUN if [ "$NODE_VERSION" = "18" ]; then npm config fix; fi

# gradle / artifactory auth
ARG MAVEN_REPO_URL
Expand Down

0 comments on commit 25531ed

Please sign in to comment.