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 6fbb99c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,18 @@ VOLUME "/data"
RUN git config --global 'user.email' '[email protected]'
RUN git config --global 'user.name' 'Pelias Docker'

# #
# ENV NAVE_CONFIG="--without-npm"

# install nodejs
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 version
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 6fbb99c

Please sign in to comment.