Hack for downgrading npm when using overlay storage driver

https://github.com/npm/npm/issues/9863
This commit is contained in:
Shane McDonald 2016-11-02 12:22:10 -04:00
parent 021666482a
commit 4e81daafec

View File

@ -33,6 +33,12 @@ RUN yum install -y \
RUN curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
RUN yum install -y nodejs
# https://github.com/npm/npm/issues/9863
RUN cd $(npm root -g)/npm \
&& npm install fs-extra \
&& sed -i -e s/graceful-fs/fs-extra/ -e s/fs\.rename/fs.move/ ./lib/utils/rename.js
RUN npm install -g npm@3.10.7
WORKDIR "/ansible-tower"