You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
On Windows, the automatic driver install shows a raw cmd.exe error when npm is not on PATH #1789
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
On Windows, open a terminal whose PATH has no Node.js (where npm finds nothing).
Run Altimate Code and add a Databricks connection, or call warehouse_install_driver for Databricks.
The install fails with npm install failed (exit 1) for @databricks/sql: 'npm' is not recognized as an internal or external command, ….
Activity
sahrizvi commentedon Nov 21, 2026
Resolved in v0.12.12.