## Install for Kate with npm

Supported operating systems:

GNU/Linux and macOS instructions

quick-lint-js has an npm package, making it easy to install the LSP server for use by Kate.

### Install prerequisites

In order to install quick-lint-js' npm package, you must first install the npm client.

Install Kate version 19 or newer.

### Install quick-lint-js

Install quick-lint-js globally (on your machine) for use anywhere, including by Kate:

>     npm install --global quick-lint-js

Note: Kate will not use quick-lint-js if it is installed locally within your project. Kate will only uses quick-lint-js if it is globally installed.

### Configure Kate

Open the LSP Client tab in Kate's settings. In your User Server Settings, paste the following configuration:

    {
        "servers": {
            "javascript": {
                "command": ["quick-lint-js", "--lsp-server"],
                "documentLanguageId": true,
                "highlightingModeRegex": "^JavaScript.*$",
                "root": "",
                "url": "https://quick-lint-js.com/install/kate/"
            }
        }
    }