Skip to content

Unable to add components using Yarn #467

@smadabat1

Description

@smadabat1

Hi Team, great admirer of the project! Thank you for your work.

I started a fresh expo project and adding the new react native reusables cli manual way.
I am using yarn as the package manager, it started throwing the following error -

npx @react-native-reusables/cli@latest add badge

which is running the below command -
yarn shadcn@latest add https://reactnativereusables.com/r/new-york/button.json
yarn run v1.22.22
error Command "shadcn@latest" not found.

Tried adding shadcn, later tried adding button using yarn and npx but still it didn't render the button properly.

I re-initialized the project multiple times but still the same issue. Any input on this would be highly appreciated.

FYI - I changed the package manager from yarn to npm (npx) and the issue got resolved.

Thanks in advance!!

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