Skip to content

On Windows, the automatic driver install shows a raw cmd.exe error when npm is not on PATH #1789

Closed

Description

@ralphstodomingo

Description

On Windows, when a warehouse driver isn't installed (for example @databricks/sql for Databricks), Altimate Code installs it with npm automatically (warehouse_install_driver, or the install on connect). When npm isn't on PATH, as on a machine that got Altimate Code from the standalone installer without Node.js, the install fails with cmd.exe's raw output:

npm install failed (exit 1) for @databricks/sql: 'npm' is not recognized as an internal or external command,
operable program or batch file.

On macOS and Linux the same case gives a message that says what to do: "npm is not available on PATH, so Databricks cannot be installed automatically. Install Node.js, then run: npm install --prefix … @databricks/sql".

The install runs npm through the shell. A POSIX shell exits 127 when npm is missing, and that exit code picks the message. cmd.exe exits 1, the same code as a failed install, and prints its "is not recognized" line in the system's language, so the Windows case falls through to the generic failure.

Expected: on Windows without npm on PATH, the same "npm is not available on PATH … Install Node.js, then run: …" message, with the directory quoted for cmd.exe and PowerShell. A real npm failure (registry unreachable, build error) should still report npm's own output.

Plugins

None

OpenCode version

0.12.8 to 0.12.11, and main

Steps to reproduce

  1. On Windows, open a terminal whose PATH has no Node.js (where npm finds nothing).
  2. Run Altimate Code and add a Databricks connection, or call warehouse_install_driver for Databricks.
  3. The install fails with npm install failed (exit 1) for @databricks/sql: 'npm' is not recognized as an internal or external command, ….

Screenshot and/or share link

None

Operating System

Windows 10 and 11

Terminal

Any (cmd.exe, PowerShell, Windows Terminal)

Activity

  1. sahrizvi commented on Nov 21, 2026

    @sahrizvi
    Collaborator

    Resolved in v0.12.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions