Skip to content

npm install -g fails with TAR_ENTRY_ERROR — missing parent directories in openclaw tarball #503

Closed

Description

@Manoj-777

Environment

  • OS: Ubuntu 22.04 LTS
  • Node.js: v22.22.1
  • npm: 10.9.4
  • Install method: curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash

Description

Installing NemoClaw via the official installer script consistently fails with TAR_ENTRY_ERROR warnings followed by a fatal spawn sh ENOENT error.

Error Output

npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, lstat '/home/ubuntu/.npm-global/lib/node_modules/nemoclaw/node_modules/openclaw/dist/plugin-sdk/config'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, lstat '/home/ubuntu/.npm-global/lib/node_modules/nemoclaw/node_modules/openclaw/extensions'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, lstat '/home/ubuntu/.npm-global/lib/node_modules/nemoclaw/node_modules/openclaw/skills'

npm error code ENOENT
npm error syscall spawn sh
npm error path /home/ubuntu/.npm-global/lib/node_modules/nemoclaw/node_modules/@whiskeysockets/baileys
npm error errno -2
npm error enoent spawn sh ENOENT

Root Cause

The openclaw package tarball (v2026.3.13, 94.8 MB unpacked) contains entries where files appear before their parent directories. npm's tar extractor cannot write these files because the parent directories (config/, extensions/, skills/) haven't been created yet.

This causes an incomplete extraction, which then causes @whiskeysockets/baileys postinstall script to fail with spawn sh ENOENT — crashing the entire install.

Workaround

git clone https://github.com/NVIDIA/NemoClaw.git /tmp/nemoclaw-src
cd /tmp/nemoclaw-src
npm install --ignore-scripts
npm link

Suggested Fix

  • Investigate the openclaw npm tarball to ensure directory entries are ordered before their contents (RFC-compliant tar ordering)
  • Or add --ignore-scripts to the npm install call in install.sh to prevent the cascading postinstall failure

Activity

  1. added
    platform: ubuntu
    on Mar 20, 2026
  2. wscurran commented on Mar 20, 2026

    @wscurran
    Contributor

    Thanks for sharing the details of the installation failure on Ubuntu, including the error output, which should help us identify the cause of the TAR_ENTRY_ERROR.

  3. added theissue type on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: ubuntu

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions