Skip to content

Docs copying instructions invalid #362

@ieedan

Description

@ieedan

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.

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