-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
node: use older version of npm to match older version of node
- Loading branch information
1 parent
bc00f08
commit 6fbb99c
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
||
|