Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install dependencies #1

Closed
john-prutton opened this issue Sep 3, 2023 · 2 comments
Closed

Unable to install dependencies #1

john-prutton opened this issue Sep 3, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@john-prutton
Copy link

john-prutton commented Sep 3, 2023

Great project, I will be saving a lot of time using it.

kirimase add had issues while trying to install dependencies. When I use shadcn-ui cli package to install deps it works fine to call pnpm.

Error:

$ pnpm kirimase add
? Select a package to add
Auth.js (NextAuth)
? Select a provider to add
github
[15:22:42] ✔ File created at src/app/api/auth/[...nextauth]/route.ts
[15:22:42] ✔ File created at src/lib/auth/Provider.tsx
[15:22:42] ✔ File created at src/lib/auth/utils.ts
[15:22:42] ✔ File created at src/lib/db/schema/auth.ts        
[15:22:42] ✔ File created at src/components/auth/SignIn.tsx   
[15:22:42] ◐ Installing packages: @auth/core @auth/drizzle-adapter next-auth ...
node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: spawn pnpm ENOENT       
    at ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:476:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:476:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn pnpm',       
  path: 'pnpm',
  spawnargs: [ 'install', '@auth/core', '@auth/drizzle-adapter', 'next-auth' ]
}

Node.js v18.16.0
@john-prutton john-prutton changed the title Unable to install via Pnpm Unable to install dependencies via Pnpm Sep 4, 2023
@john-prutton john-prutton changed the title Unable to install dependencies via Pnpm Unable to install dependencies Sep 4, 2023
@nicoalbanese nicoalbanese self-assigned this Sep 4, 2023
@nicoalbanese
Copy link
Owner

Hey! Thanks for this. First open-source package for me so still learning the ropes! I've changed the logic from spawn to execa (a better version of spawn). I'm hoping that's solved it. Let me know if that's resolved the issue.

@nicoalbanese nicoalbanese added the bug Something isn't working label Sep 4, 2023
@john-prutton
Copy link
Author

No prob, keep up the good work.

Can confirm that execa helped and that the package is working as expected!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants