Skip to content

Augment server cannot detect node version when using snaps #40

@aieri

Description

@aieri

I am unable to use the nvim plugin on the current Ubuntu LTS (24.04).

If I install node.js from deb, the plugin complains that the version is too old (18.19.1 at the moment).
If I install the official node.js snap (22.16.0 at the moment), the Augment server is unable to detect the version and exits:

    3 2025-06-18 11:37:35 [INFO] Starting Augment Server v0.25.1                                                                                                                                                                                              
    2 2025-06-18 11:37:35 [INFO] Using workspace folders: [{'uri': 'file:///this/is/redacted/', 'name': 'git'}]                                                                                                                                           
    1 2025-06-18 11:37:35 [WARN] Failed to determine the Augment runtime version. Command `node --version` returned no output.                                                                                                                                
    4 2025-06-18 11:37:35 [ERROR] Augment exited: code: 0, signal 0         

While integrating with snaps can be a pain, both nvim and node are classic snaps so you shouldn't have to deal with plugs and connections.

$ snap list nvim node
Name  Version  Rev    Tracking       Publisher    Notes
node  22.16.0  10226  22/stable      iojs✓        classic
nvim  v0.11.2  3834   latest/stable  neovim-snap  classic

I'm not sure why Augment says node --version returns no output... from which context is this command being run?
FTR, my user can run this without problem, as expected:

$ node --version
v22.16.0

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