Skip to content

[bug]: Installing the editor results in errors from TAR #7851

@frank-nielson

Description

@frank-nielson

Describe the bug

Running the following command in a brand new package created using the shadcn init gives this result:

npm install shadcn@latest add https://shadcn-editor.vercel.app/r/editor-x.json

npm warn tar TAR_ENTRY_INVALID checksum failure
npm warn tar TAR_ENTRY_INVALID checksum failure
npm warn tar TAR_ENTRY_INVALID checksum failure
npm warn tar TAR_ENTRY_INVALID checksum failure

Using npx instead of npm results in a similar error. Same with pnpm.

Affected component/components

rich-text-editor-plugin

How to reproduce

  1. Run the npm or pnpm commands listed in https://shadcn-editor.vercel.app/docs/plugins/rich-text-editor
  2. The errors will show up
Image

Codesandbox/StackBlitz link

No response

Logs

14 silly packumentCache corgi:https://registry.npmjs.org/shadcn cache-miss
15 http fetch GET 200 https://registry.npmjs.org/shadcn 60ms (cache hit)
16 silly packumentCache corgi:https://registry.npmjs.org/shadcn set size:191607 disposed:false
17 warn tar TAR_ENTRY_INVALID checksum failure
18 silly tar TAR_ENTRY_INVALID checksum failure {
18 silly tar   header: Header {
18 silly tar     cksumValid: false,
18 silly tar     needPax: false,
18 silly tar     nullBlock: false,
18 silly tar     block: null,
18 silly tar     path: '{\n' +
18 silly tar       '  "$schema": "https://ui.shadcn.com/schema/registry-item.json",\n' +
18 silly tar       '  "name": "editor-x",\n' +
18 silly tar       '  "type": "r',
18 silly tar     mode: null,
18 silly tar     uid: null,
18 silly tar     gid: null,
18 silly tar     size: null,
18 silly tar     mtime: null,
18 silly tar     cksum: null,
18 silly tar     linkpath: 'lidraw",\n' +
18 silly tar       '    "@lexical/code",\n' +
18 silly tar       '    "@lexical/file",\n' +
18 silly tar       '    "@lexical/hashtag",\n' +
18 silly tar       '    "@lexical/link",\n' +
18 silly tar       '    ',
18 silly tar     uname: null,
18 silly tar     gname: null,
18 silly tar     devmaj: 0,
18 silly tar     devmin: 0,
18 silly tar     atime: null,
18 silly tar     ctime: null,
18 silly tar     [Symbol(type)]: 'a'
18 silly tar   },
18 silly tar   cwd: 'C:/Users/fniel/AppData/Local/npm-cache/_cacache/tmp/XE3DSC',
18 silly tar   code: 'TAR_ENTRY_INVALID',
18 silly tar   tarCode: 'TAR_ENTRY_INVALID'
18 silly tar }

The total log data is massive, so I've only included a clip here.

System Info

I'm using windows 11 Pro

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions