xataio / client-ts

Xata.io SDK for TypeScript and JavaScript
https://xata.io/docs/sdk/typescript/overview
Apache License 2.0
123 stars 8 forks source link

[CLI] Fix `spawn` error when initializing a new xata database #1452

Closed creative-tutorials closed 5 months ago

creative-tutorials commented 6 months ago

Describe the bug

When I try to initialize xata into my new project, I get an error that says:

Running pnpm add @xata.io/client
    Error: spawn EINVAL
    Code: EINVAL

It doesn't even create the xata.ts file or even install the @xata.io/client package.

To Reproduce

Command I used

xata init

Output of the error

Running pnpm add @xata.io/client
    Error: spawn EINVAL
    Code: EINVAL

Expected behavior

Normally when running xata init it generates the .xata.ts file and installs the @xata.io/client package

Software version

The CLI version I'm running is: @xata.io/cli/0.15.11 win32-x64 node-v20.12.2

Additional context

SferaDev commented 5 months ago

Fixed by #1466

creative-tutorials commented 5 months ago

Fixed by #1466

You're amazing