Skip to content

[BUG] - CLI install bug - .heroui-cli-cache/data.json #166

@ProjectINT

Description

@ProjectINT

HeroUI Version

HeroUI CLI v1.2.3

Describe the bug

Please report it as a bug:
Error: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/heroui-cli/dist/.heroui-cli-cache/data.json'
at readFileSync (node:fs:433:20)
at Ve (file:///usr/local/lib/node_modules/heroui-cli/dist/index.js:23:521)
at W (file:///usr/local/lib/node_modules/heroui-cli/dist/index.js:23:1116)
at Command. (file:///usr/local/lib/node_modules/heroui-cli/dist/index.js:83:535)
at Command.listener [as _actionHandler] (/usr/local/lib/node_modules/heroui-cli/node_modules/commander/lib/command.js:482:17)
at /usr/local/lib/node_modules/heroui-cli/node_modules/commander/lib/command.js:1300:65
at /usr/local/lib/node_modules/heroui-cli/node_modules/commander/lib/command.js:1194:33
at async Command.parseAsync (/usr/local/lib/node_modules/heroui-cli/node_modules/commander/lib/command.js:935:5) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/usr/local/lib/node_modules/heroui-cli/dist/.heroui-cli-cache/data.json'
}

After installing in both methods by npx and by npm. I catch this error. Can't use CLI for now.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Install CLI folowind this instruction:
  2. run heroui in console

Expected behavior

I expect help commands or argument exception

Screenshots or Videos

No response

Operating System Version

Linux Ubuntu 22.04

Browser

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions