Skip to content

Commit

Permalink
Update npm of Node 8.0 and 8.1 to avoid file permission issue (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpcastro authored May 15, 2019
1 parent b447592 commit cdd4aed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions images/runtime/node/8.0/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ RUN apt-get update \
&& apt-get install -y unzip \
&& rm -rf /var/lib/apt/lists/*

# Update npm to 5.10.0 to avoid this error: https://github.com/npm/npm/issues/16766
RUN curl -L https://npmjs.org/install.sh | npm_install=5.10.0 sh

# All users need access to node_modules at the root, as this is the location
# for packages valid for all apps.
RUN mkdir -p /node_modules \
Expand Down
3 changes: 3 additions & 0 deletions images/runtime/node/8.1/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ RUN apt-get update \
&& apt-get install -y unzip \
&& rm -rf /var/lib/apt/lists/*

# Update npm to 5.10.0 to avoid this error: https://github.com/npm/npm/issues/16766
RUN curl -L https://npmjs.org/install.sh | npm_install=5.10.0 sh

# All users need access to node_modules at the root, as this is the location
# for packages valid for all apps.
RUN mkdir -p /node_modules \
Expand Down

0 comments on commit cdd4aed

Please sign in to comment.