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

Docs copying instructions invalid #362

Open
ieedan opened this issue Jul 8, 2024 · 0 comments
Open

Docs copying instructions invalid #362

ieedan opened this issue Jul 8, 2024 · 0 comments

Comments

@ieedan
Copy link

ieedan commented Jul 8, 2024

When copying the install command from here:

npm install kysely @xata.io/kysely @xata.io/client

When trying to run the command after pasting you get the following error:

At line:1 char:13
+ npm install @xata.io/kysely @xata.io/client
The splatting operator '@' cannot be used to reference variables in an expression. '@xata' can be used only as an      
argument to a command. To reference variables in an expression use '$xata'.
At line:1 char:29
+ npm install @xata.io/kysely @xata.io/client
+                             ~~~~~
The splatting operator '@' cannot be used to reference variables in an expression. '@xata' can be used only as an      
argument to a command. To reference variables in an expression use '$xata'.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException

This happens for me on windows 10 in the VSCode terminal.

The @xata.io name for some reason causes issues for the parser in this case.

This can be fixed pretty easily by changing the command to wrap the dependency arguments in quotes like this:

npm install kysely '@xata.io/kysely' '@xata.io/client'

There are a few other places in the docs that don't have @xata.io/... args wrapped in quotes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant