Skip to content

Commit

Permalink
node: use older version of npm to match older version of node
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed Nov 30, 2023
1 parent bc00f08 commit 99bc058
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ RUN git config --global 'user.name' 'Pelias Docker'
ENV NODE_VERSION='16.20.1'
RUN git clone 'https://github.com/isaacs/nave.git' /code/nave && /code/nave/nave.sh 'usemain' "${NODE_VERSION}" && rm -rf ~/.nave /code/nave

# node version is so old it requires an older version of npm
# https://stackoverflow.com/a/77024158
RUN npm i npm@9 -g

# add global install dir to $NODE_PATH
ENV NODE_PATH="/usr/local/lib/node_modules:$NODE_PATH"

Expand Down

0 comments on commit 99bc058

Please sign in to comment.