Skip to content

Commit 68eeee0

Browse files
committed
fix: drop npm internal tar update that fails on missing @npmcli/docs
npm's bundled node_modules cannot be safely updated via --prefix; the update resolves @npmcli/docs@^1.0.0 which does not exist on the registry. The global tar@7.5.11 install and the openclaw-scoped update are sufficient.
1 parent f96f3fe commit 68eeee0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sandboxes/nemoclaw/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ RUN set -e; \
6262
# Fix transitive tar vulnerabilities (GHSA-qffp-2rhf-9h96,
6363
# GHSA-9ppj-qmqm-q256, GHSA-8qq5-rm4j-mr97, GHSA-r6q2-hw4h-h46w,
6464
# GHSA-34x7-hfp2-rc4v, GHSA-83g3-92jg-28cx).
65-
# The base image pins tar@7.5.11 globally, but openclaw and npm ship older
66-
# nested copies; force-upgrade all of them.
65+
# The base image pins tar@7.5.11 globally, but openclaw ships older nested
66+
# copies; force-upgrade them. (npm's own bundled tar is not updatable via
67+
# --prefix without pulling missing internal deps like @npmcli/docs.)
6768
RUN npm install -g tar@7.5.11 && \
68-
npm --prefix "$(npm root -g)/openclaw" update tar && \
69-
npm --prefix "$(npm root -g)/npm" update tar
69+
npm --prefix "$(npm root -g)/openclaw" update tar
7070

7171
ENTRYPOINT ["/bin/bash"]

0 commit comments

Comments
 (0)