Skip to content
This repository has been archived by the owner. It is now read-only.

Commit 4acda49

Browse files
committed
Fix npm install on 0.8 by updating to 1.4.28 first
1 parent dcae7f1 commit 4acda49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

0.8/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ RUN curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x
1717
&& grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt.asc | sha256sum -c - \
1818
&& tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \
1919
&& rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc \
20+
&& npm install -g [email protected] \
2021
&& npm install -g npm@"$NPM_VERSION" \
2122
&& npm cache clear
2223

24+
# note: we have to install npm 1.4.28 first because we can't go straight from 1.2 -> 2.0
25+
# see also https://github.com/docker-library/node/issues/15#issuecomment-57879931
26+
2327
CMD [ "node" ]

0 commit comments

Comments
 (0)