We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32ee382 commit 32bfbc6Copy full SHA for 32bfbc6
20/alpine3.20/Dockerfile
@@ -75,7 +75,17 @@ RUN addgroup -g 1000 node \
75
&& apk del .build-deps \
76
# smoke tests
77
&& node --version \
78
- && npm --version
+ && npm --version \
79
+ # FORCE correct version of cross-spawn in system
80
+ && mkdir /tmp/npm-install \
81
+ && cd /tmp/npm-install \
82
+ && npm init -y \
83
+ && npm install [email protected] \
84
+ # Now move the installed cross-spawn to the target directory
85
+ && cp -R node_modules/cross-spawn /usr/local/lib/node_modules/npm/node_modules/ \
86
+ # Clean up
87
+ && cd / \
88
+ && rm -rf /tmp/npm-install
89
90
ENV YARN_VERSION 1.22.22
91
0 commit comments